Go to: Synopsis. Flags. Return value. Related. MEL examples.
cpCache [-allGeometry] [-assignCache cacheName] [-blend] [-cacheSegment cacheNode rangeString] [-copy] [-createCache] [-createTemplateCache] [-help] [-interpolate interpType] [-listAllCaches] [-listCaches solver] [-range] [-replaceCache cacheFile cacheNode] [-saveCache cacheNode filename] [-silent] [-solverCache solver] [-solverTemplateCache solver] [-targetCacheSegment cacheNode rangeString]
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.| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
-help(-h)
|
|
|
||
|
||||
-assignCache(-ac)
|
cacheName
|
|
||
|
||||
-createCache(-cc)
|
|
|
||
|
||||
-createTemplateCache(-ctc)
|
|
|
||
|
||||
-allGeometry(-ag)
|
|
|
||
|
||||
-listAllCaches(-lac)
|
|
|
||
|
||||
-replaceCache(-rc)
|
cacheFile cacheNode
|
|
||
|
||||
-solverCache(-sc)
|
solver
|
|
||
|
||||
-solverTemplateCache(-stc)
|
solver
|
|
||
|
||||
-saveCache(-sav)
|
cacheNode filename
|
|
||
|
||||
-interpolate(-i)
|
interpType
|
|
||
|
||||
-blend(-b)
|
|
|
||
|
||||
-copy(-cop)
|
|
|
||
|
||||
-listCaches(-lc)
|
solver
|
|
||
|
||||
-cacheSegment(-cs)
|
cacheNode rangeString
|
|
||
|
||||
-targetCacheSegment(-tc)
|
cacheNode rangeString
|
|||
|
||||
-silent(-s)
|
|
|||
|
||||
-range(-r)
|
|
|
||
|
||||
// Create a new cache node. And attaches it to the current solver.
cpCache -cc;
// To interpolate between 1:8 on cache node cpCache1
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.
cpCache -blend -cacheSegment cpCache1 "1:5"
-cacheSegment cpCache2 "6:10" -targetCacheSegment cpCache2 "6:10";