This command is used for inserting and removing tracks related to the shots displayed in the Sequencer. It can also be used to modify the track state, for example, to lock or mute a track. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
insertTrack (it) | int | ||
|
|||
lock (l) | bool | ||
|
|||
mute (m) | bool | ||
|
|||
numTracks (nt) | int | ||
|
|||
removeEmptyTracks (ret) | bool | ||
|
|||
removeTrack (rt) | int | ||
|
|||
solo (so) | bool | ||
|
|||
swapTracks (st) | int, int | ||
|
Derived from mel command maya.cmds.shotTrack
Example:
import pymel.core as pm
# Move the shot named "shot2" to track 3
#
pm.shotTrack( 'shot2', track=3 )
# Lock the track containing the shot named "shot1"
#
pm.shotTrack( 'shot1', lock=True )
# Remove any empty tracks
#
pm.shotTrack(removeEmptyTracks=True)
# shotTrack -q -track shot1;
#
pm.shotTrack( 'shot1', q=True, track=True )