pymel.core.system.cacheFileTrack

static system.cacheFileTrack(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
insertTrack (it) int ../../../_images/create.gif
 
This flag is used to insert a new empty track at the track index specified.
lock (l) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies whether clips on a track are to be locked or not.
mute (m) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies whether clips on a track are to be muted or not.
removeEmptyTracks (ret) bool ../../../_images/create.gif
 

This flag is used to remove all tracks that have no clips. Flag can have multiple arguments, passed either as a tuple or a list.

removeTrack (rt) int ../../../_images/create.gif
 
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.
solo (so) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies whether clips on a track are to be soloed or not.
track (t) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Used to specify a new track index for a cache to be displayed. Track-indices are 1-based.

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 )

Previous topic

pymel.core.system.cacheFileMerge

Next topic

pymel.core.system.clearCache

Core

Core Modules

Other Modules

This Page