This command is used for inserting and removing tracks related to the audio clips 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.audioTrack
Example:
import pymel.core as pm
# Move the audio clip named "audio2" to track 3
#
pm.audioTrack( 'audio2', track=3 )
# Lock the track containing the audio clip named "audio1"
#
pm.audioTrack( 'audio1', lock=True )
# Remove any empty tracks
#
pm.audioTrack(removeEmptyTracks=True)
# audioTrack -q -track audio1;
#
pm.audioTrack( 'audio1', q=True, track=True )