Go to: Synopsis. Return value. Keywords. Flags. Python examples.
polyCacheMonitor([cacheValue=boolean], [nodeName=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polyCacheMonitor is NOT undoable, NOT queryable, and NOT editable.
When the cacheInput attribute has a positive value the midModifier node caches the output mesh improving performance in computations of downstream nodes. When the counter has a zero value the midModifier releases the cached data.None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
cacheValue(chv)
|
boolean
|
|||
|
||||
nodeName(nm)
|
string
|
|||
|
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 # increment cache counter on polyExtrudeFace1 node cmds.polyCacheMonitor( nodeName='polyExtrudeFace1' ) # update/edit manipulate nodes which are present downstream # with respect to polyExtrudeFace1 # decrement cache counter on polyExtrudeFace1 node # so that the cache is set free cmds.polyCacheMonitor( nodeName='polyExtrudeFace1', cacheValue=False )