Go to: Synopsis. Return value. Keywords.
Flags. Python
examples.
cacheFileTrack([insertTrack=uint], [lock=boolean], [mute=boolean], [removeEmptyTracks=boolean],
[removeTrack=uint], [solo=boolean], [track=uint])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
cacheFileTrack is undoable, queryable, and editable.
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.
None
In query mode, return type is based on queried flag.
cache, file, disk, blend, trax, track
insertTrack, lock, mute, removeEmptyTracks, removeTrack, solo,
track
Long name (short name) |
Argument types |
Properties |
lock(l) |
boolean |
   |
|
This flag specifies whether clips on a track are to be locked
or not. |
|
solo(so) |
boolean |
   |
|
This flag specifies whether clips on a track are to be soloed
or not. |
|
mute(m) |
boolean |
   |
|
This flag specifies whether clips on a track are to be muted or
not. |
|
track(t) |
uint |
   |
|
Used to specify a new track index for a cache to be displayed.
Track-indices are 1-based. |
|
insertTrack(it) |
uint |
 |
|
This flag is used to insert a new empty track at the track
index specified. |
|
removeTrack(rt) |
uint |
 |
|
This flag is used to remove the track with the specified index.
The track must have no clips on it before it can be removed. |
|
removeEmptyTracks(ret) |
boolean |
 |
|
This flag is used to remove all tracks that have no clips. |
|
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
# Move the cache clip named "cubeCache2" to track 3
#
cmds.cacheFileTrack( 'cubeCache2', track=3 )
# Lock the track containing the cache clip named "sphCache1"
#
cmds.cacheFileTrack( 'sphCache1', lock=True )
# Remove any empty cache tracks for the object "sphereShape1"
#
cmds.cacheFileTrack('sphereShape1',removeEmptyTracks=True)
# query the track index of the cache clip named "sphCache1"
#
cmds.cacheFileTrack( 'sphCache1', q=True, track=True )