This command is used for inserting and removing tracks related to the caches displayed in the trax editor. 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 | ||
|
|||
removeEmptyTracks (ret) | bool | ||
This flag is used to remove all tracks that have no clips.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
removeTrack (rt) | int | ||
|
|||
solo (so) | bool | ||
|
|||
track (t) | int | ||
|
Derived from mel command maya.cmds.cacheFileTrack
Example:
import pymel.core as pm
# Move the cache clip named "cubeCache2" to track 3
#
pm.cacheFileTrack( 'cubeCache2', track=3 )
# Lock the track containing the cache clip named "sphCache1"
#
pm.cacheFileTrack( 'sphCache1', lock=True )
# Remove any empty cache tracks for the object "sphereShape1"
#
pm.cacheFileTrack('sphereShape1',removeEmptyTracks=True)
# query the track index of the cache clip named "sphCache1"
#
pm.cacheFileTrack( 'sphCache1', q=True, track=True )