Adds a motion guide layer above the current layer and attaches the current layer to the newly added guide layer.
Returns
number
public addNewLayer(name?: string, layerType?: string, bAddAbove?: boolean): any
Adds a new layer to the document and makes it the current layer.
Parameters
name?: stringoptional
layerType?: stringoptional
bAddAbove?: booleanoptional
Returns
any
public clearFrames(startFrameIndex?: number, endFrameIndex?: number)
Deletes all the contents from a frame or range of frames on the current layer.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public clearKeyframes(startFrameIndex?: number, endFrameIndex?: number)
Converts a keyframe to a regular frame and deletes its contents on the current layer.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public convertToBlankKeyframes(startFrameIndex?: number, endFrameIndex?: number)
Converts frames to blank keyframes on the current layer.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public convertToKeyframes(startFrameIndex?: number, endFrameIndex?: number)
Converts a range of frames to keyframes (or converts the selection if no frames are specified) on the current layer.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public copyFrames(startFrameIndex?: number, endFrameIndex?: number)
Copies a range of frames on the current layer to the clipboard.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public copyLayers(startFrameIndex?: number, endFrameIndex?: number)
Copies a range of Timeline layers to the clipboard.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public copyMotion()
Copies motion on selected frames, either from a motion tween or from frame - by - frame animation, so it can be applied to other frames.
public copyMotionAsAS3()
Copies motion on selected frames, either from a motion tween or from frame - by - frame animation, to the clipboard as ActionScript 3.0 code.
public createMotionObject(startFrameIndex?: number, endFrameIndex?: number)
Creates a new motion object at a designated start and end frame.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public createMotionTween(startFrameIndex?: number, endFrameIndex?: number)
Sets the frame.tweenType property to motion for each selected keyframe on the current layer, and converts each frame's contents to a single symbol instance if necessary.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public cutFrames(startFrameIndex?: number, endFrameIndex?: number)
Cuts a range of frames on the current layer from the timeline and saves them to the clipboard.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public cutLayers(startLayerIndex?: number, endLayerIndex?: number)
Cuts a range of Timeline layers and saves them to the clipboard.
Parameters
startLayerIndex?: numberoptional
endLayerIndex?: numberoptional
public deleteLayer(index: number)
Deletes a layer.
Parameters
index: number
public duplicateLayers(startFrameIndex?: number, endFrameIndex?: number)
Duplicates the selected layers or specified layers.
Parameters
startFrameIndex?: numberoptional
endFrameIndex?: numberoptional
public expandFolder(bExpand: boolean, bRecurseNestedParents?: boolean, index?: number)
Expands or collapses the specified folder or folders.
Parameters
bExpand: boolean
bRecurseNestedParents?: booleanoptional
index?: numberoptional
public findLayerIndex(name: string): Array<number>
Finds an array of indexes for the layers with the given name.
Parameters
name: string
Returns
Array<number>
public getFrameProperty(property: string, startframeIndex?: number, endFrameIndex?: number): any
Retrieves the specified property's value for the selected frames.
Parameters
property: string
startframeIndex?: numberoptional
endFrameIndex?: numberoptional
Returns
any
public getGuidelines(): string
Returns an XML string that represents the current positions of the horizontal and vertical guide lines for a timeline(View > Guides > Show Guides).
Returns
string
public getLayerProperty(property: string): any
Retrieves the specified property's value for the selected layers.