Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.

Synopsis

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.

Return value

stringReturn values currently not documented.

In query mode, return type is based on queried flag.

Keywords

timeEditor, nle

Related

timeEditor, timeEditorAnimSource, timeEditorClip, timeEditorTracks

Flags

active, allCompositions, createTrack, delete, duplicateFrom, rename, tracksNode
Long name (short name) Argument types Properties
active(act) boolean queryedit
Query or edit the active composition.
allCompositions(acp) boolean query
Return all compositions inside Time Editor.
createTrack(ct) boolean create
Create a default track when creating a new composition.
delete(delete) boolean queryedit
Delete the composition.
duplicateFrom(df) string create
Duplicate the composition.
rename(ren) [string, string] edit
Rename the composition of the first name to the second name.
tracksNode(tn) boolean query
Query the tracks node of a composition.

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.

Python examples

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)