Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.
timeEditorTracks([activeClipWeight=time], [activeClipWeightId=time], [addTrack=int], [allClips=boolean], [allTracks=boolean], [allTracksRecursive=boolean], [composition=boolean], [path=string], [plugIndex=int], [removeTrack=int], [removeTrackByPath=string], [reorderTrack=[int, int]], [resetMute=boolean], [resetSolo=boolean], [selectedTracks=boolean], [trackGhost=boolean], [trackIndex=int], [trackMuted=boolean], [trackName=string], [trackSolo=boolean], [trackType=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
timeEditorTracks is undoable, queryable, and editable.
Time Editor tracks commands
Int | In edit mode, return the newly created Track index. |
In query mode, return type is based on queried flag.
timeEditor, nle
timeEditor, timeEditorAnimSource, timeEditorClip, timeEditorComposition
activeClipWeight, activeClipWeightId, addTrack, allClips, allTracks, allTracksRecursive, composition, path, plugIndex, removeTrack, removeTrackByPath, reorderTrack, resetMute, resetSolo, selectedTracks, trackGhost, trackIndex, trackMuted, trackName, trackSolo, trackType
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
# Insert a track at the end
#
cmds.timeEditorTracks( 'container1_tracks', e=1, addTrack=-1 )
# Insert a track at the end by path, inside a composition
#
cmds.timeEditorTracks( path='composition1', e=1, addTrack=-1 )
# Insert a track at the end by path, inside a group clip
#
cmds.timeEditorTracks( path='composition1|track1|groupClip', e=1, addTrack=-1 )
# Remove the track from "container1_tracks"
#
cmds.timeEditorTracks( 'container1_tracks', e=1, removeTrack=1 )
# Remove the track by paths
#
cmds.timeEditorTracks( e=1, removeTrackByPath=['composition1|track2', 'composition1|track1|group|track3'] )
# Move track 0 forward 1 siblings
#
cmds.timeEditorTracks( 'container1_tracks', e=1, reorderTrack=(0, 1) )
# Set the track name
#
cmds.timeEditorTracks( 'container1_tracks', e=1, trackName="Test", trackIndex=0 )
# Set the track name by path
#
cmds.timeEditorTracks( e=1, trackName="Test", path='composition1|track2' )
# Mute the track
#
cmds.timeEditorTracks( 'container1_tracks', e=1, trackMuted=True, trackIndex=0 )