Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.
timeEditorComposition([active=boolean], [allCompositions=boolean], [createTrack=boolean], [delete=boolean], [duplicateFrom=string], [rename=[string, string]], [tracksNode=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
timeEditorComposition is undoable, queryable, and editable.
Commands related to composition management inside Time Editor.
string | Return values currently not documented. |
In query mode, return type is based on queried flag.
timeEditor, nle
timeEditor, timeEditorAnimSource, timeEditorClip, timeEditorTracks
active, allCompositions, createTrack, delete, duplicateFrom, rename, tracksNode
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# To create composition "Take1"
cmds.timeEditorComposition("Take1")
# To query active composition (returns name of the tracks node for that composition)
cmds.timeEditorComposition(query=1, active=1)
# To set active composition by specifying the associated tracks node
cmds.timeEditorComposition("TE_Tracks_Take2", edit=1, active=1)