Go to: Synopsis. Flags. Return value. Related. Python examples.
cpCache([allGeometry=boolean], [assignCache=cacheName], [blend=boolean], [cacheSegment=[cacheNode, rangeString]], [copy=boolean], [createCache=boolean], [createTemplateCache=boolean], [help=boolean], [interpolate=interpType], [listAllCaches=boolean], [listCaches=solver], [range=boolean], [replaceCache=[cacheFile, cacheNode]], [saveCache=[cacheNode, filename]], [silent=boolean], [solverCache=solver], [solverTemplateCache=solver], [targetCacheSegment=[cacheNode, rangeString]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
cpCache is undoable, queryable, and editable.
This command is used to create new cache nodes to connect the
a solver. It also offers flags for cloth cache manipulation.
allGeometry, assignCache, blend, cacheSegment, copy, createCache, createTemplateCache, help, interpolate, listAllCaches, listCaches, range, replaceCache, saveCache, silent, solverCache, solverTemplateCache, targetCacheSegment
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.
|
varies depending on use.
cpSolver
import maya.cmds as cmds
# Create a new cache node. And attaches it to the current solver.
cmds.cpCache( cc=True )
# To interpolate between 1:8 on cache node cpCache1
cmds.cpCache( interpolate='linear', cacheSegment=('cpCache1', '1:8' ))
# To blend frames 1:5 of cache cpCache1 with frames 6:10
# of cpCache2 and put the result in 6:10 of cpCache2.
cmds.cpCache( blend=True, cacheSegment=(('cpCache1', '1:5'), ('cpCache2', '6:10')), targetCacheSegment=('cpCache2', '6:10') )
Return to Autodesk Index