new $.oDrawingColumn(uniqueName, oAttributeObject)
openHarmony/openHarmony_column.js, line 560
the $.oDrawingColumn constructor. Only called internally by the factory function scene.getColumnByName();
Name | Type | Description |
---|---|---|
uniqueName |
string | The unique name of the column. |
oAttributeObject |
$.oAttribute | The oAttribute thats connected to the column. |
Properties:
Name | Type | Description |
---|---|---|
uniqueName |
string | The unique name of the column. |
attributeObject |
$.oAttribute | The attribute object that the column is attached to. |
Extends
Members
-
element$.oElement
-
Retrieve and set the drawing element attached to the column.
-
readonlyframesArray.<$.oFrame>
-
An array of the oFrame objects provided by the column.
-
readonlykeyframesArray.<$.oFrame>
-
An array of the keyframes provided by the column.
-
namestring
-
The name of the column.
-
selectedbool
-
Whether the column is selected.
-
stepSectionobject
-
An object with three int values : start, end and step, representing the value of the stepped section parameter (interpolation with non linear "step" parameter).
-
readonlysubColumnsobject
-
Provides the available subcolumns, based on the type of the column.
-
readonlytypestring
-
The type of the column. There are nine column types: drawing (DRAWING), sound (SOUND), 3D Path (3DPATH), Bezier Curve (BEZIER), Ease Curve (EASE), Expression (EXPR), Timing (TIMING) for timing columns, Quaternion path (QUATERNIONPATH) for 3D rotation and Annotation (ANNOTATION) for annotation columns.
Methods
-
duplicate(duplicateElement, newAttribute){$.oColumn}
openHarmony/openHarmony_column.js, line 619 -
Duplicates a Drawing column.
Name Type Default Description duplicateElement
bool true optional Whether to also duplicate the element. Default is true. newAttribute
$.oAttribute optional Whether to link the new column to an attribute at this point. Returns:
Type Description $.oColumn The created column. -
extendExposures(exposures, amount, replace)
openHarmony/openHarmony_column.js, line 597 -
Extends the exposure of the drawing's keyframes by the specified amount.
Name Type Default Description exposures
Array.<$.oFrame> optional The exposures to extend. If not specified, extends all keyframes. amount
int optional The number of frames to add to each exposure. If not specified, will extend frame up to the next one. replace
bool false optional Setting this to false will insert frames as opposed to overwrite existing ones.(currently unsupported)) -
Filters out only the keyframes from the frames array.
Returns:
Type Description Array.<$.oFrame> Provides the array of frames from the column. -
Filters out only the keyframes from the frames array.
- Deprecated
- For case consistency, keyframe will never have a capital F
Returns:
Type Description Array.<$.oFrame> Provides the array of frames from the column. -
inherited getTimelineLayer(timeline){int}
openHarmony/openHarmony_column.js, line 468 -
Retrieves the nodes index in the timeline provided.
Name Type Description timeline
oTimeline optional Optional: the timeline object to search the column Layer. (by default, grabs the current timeline) Returns:
Type Description int The index within that timeline. -
inherited getValue(frame){various}
openHarmony/openHarmony_column.js, line 415 -
Gets the value of the column at the given frame.
Name Type Default Description frame
int 1 optional The frame at which to get the value Returns:
Type Description various The value of the column, can be different types depending on column type. -
inherited interpolateValueAtFrame(percentage, frameNumber)
openHarmony/openHarmony_column.js, line 496 -
Create/Set a key at the given percentage between the surrounding keys. Requires the column to contain at least 2 keys.
Name Type Description percentage
int a value between 0 and 100 representing the position between first and second key frameNumber
int the frame number to place the new value. Example
// grab the current node and create a key at the current frame halfway between existing keys on all linked columns for this node. var selectedNode = $.scn.selectedNodes[0]; var columns = _node.linkedColumns; var percentage = 50; var frameNumber = $.scn.currentFrame(); for (var i in columns){ try{ columns[i].interpolateValueAtFrame(percentage, frameNumber); // ommitting the arguments will create a key at 50% on current frame by default. }catch(e){ // will output errors for columns with less than 2 keys or which type don't support interpolation (for ex, DRAWING) $.log(e); } }
-
inherited remove()
openHarmony/openHarmony_column.js, line 265 -
Deletes the column from the scene. The column must be unlinked from any attribute first.
-
inherited removeDuplicateKeys()
openHarmony/openHarmony_column.js, line 294 -
Removes concurrent/duplicate keys from drawing layers.
-
removeUnexposedDrawings(exposures)
openHarmony/openHarmony_column.js, line 683 -
Removes unused drawings from the column.
Name Type Description exposures
Array.<$.oFrame> The exposures to extend. If UNDEFINED, extends all keyframes. -
renameAllByFrame(prefix, suffix)
openHarmony/openHarmony_column.js, line 648 -
Renames the column's exposed drawings according to the frame they are first displayed at.
Name Type Description prefix
string optional a prefix to add to all names. suffix
string optional a suffix to add to all names. -
inherited setValue(newValue, frame)
openHarmony/openHarmony_column.js, line 440 -
Sets the value of the column at the given frame.
Name Type Default Description newValue
various The new value to set the column to frame
int 1 optional The frame at which to get the value