Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

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.

Return value

None

Keywords

poly, cache

Flags

cacheValue, nodeName
Long name (short name) Argument types Properties
nodeName(nm) string create
Name of the node whose cache counter needs to be changed.
cacheValue(chv) boolean create
Flag to indicate whether the node's cache counter should be incremented or decremented. True increments the counter, false decrements the counter.

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.

Python examples

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 )