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

Synopsis

cacheFileCombine [-cacheIndex] [-channelName string] [-connectCache string] [-keepWeights] [-layerNode] [-nextAvailable] [-object string] [-objectIndex int]

cacheFileCombine is undoable, queryable, and editable.

Creates a cacheBlend node that can be used to combine, layer or blend multiple cacheFiles for a given object.

Return value

stringName of created cache layer node(s)

In query mode, return type is based on queried flag.

Keywords

cache, file, disk, blend

Flags

cacheIndex, channelName, connectCache, keepWeights, layerNode, nextAvailable, object, objectIndex
Long name (short name) Argument types Properties
-layerNode(-ln) query
A query flag that returns a string array of the existing cacheBlends on the selected object(s). Returns an empty string array if no cacheBlends are found.
-nextAvailable(-na) query
A query flag that returns the next available index on the selected cacheBlend node.
-connectCache(-cc) string queryedit
An edit flag that specifies a cacheFile node that should be connected to the next available index on the specified cacheBlend node. As a query flag, it returns a string array containing the cacheFiles that feed into the specified cacheBlend node.

In query mode, this flag can accept a value.

-cacheIndex(-ci) query
A query only flag that returns the index related to the cache specified with the connectCache flag.
-keepWeights(-kw) edit
This is a flag for use in combination with the connectCache flag only. By default, the connectCache flag will set all weights other than the newly added cacheWeight to 0 so that the new cache gets complete control. This flag disables that behavior so that all existing blend weights are retained.
-object(-obj) string query
This flag is used in combination with the objectIndex flag. It is used to specify the object whose index you wish to query.

In query mode, this flag needs a value.

-objectIndex(-oi) int queryedit
In edit mode, used in conjunction with the connectCache flag to indicate the objectIndex to be connected. In query mode, returns the index related to the object specified with the object flag.
-channelName(-cnm) string editmultiuse
Used in conjunction with the connectCache flag to indicate the channel(s) that should be connected. If not specified, the first channel in the file is used.

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 be used more than once in a command.

MEL examples

// Create a cacheBlend node so that additional caches can be added to
// the shape. This will attach the existing cacheFile on the shape
// to the new cacheBlend node.
//
select -r cachedShape;
string $newBlend[] = `cacheFileCombine`;
// attach an additional cacheFile to the cacheBlend node
//
cacheFileCombine -e -cc cacheFile2 $newBlend[0];
// query the index of the newly connected cache
//
cacheFileCombine -cc cacheFile2 -q -cacheIndex $newBlend[0];
// When more than one object is driven by the caches connected
// to the cacheBlend node, the -channelName and -objectIndex flags can be
// used to control which is connected.
//
// Query the objectIndex for the armShape geometry driven by cacheBlend3:
//
string $index = `cacheFileCombine -object armShape -q -objectIndex cacheBlend3`;
// Connect another cache up to drive the armShape
//
cacheFileCombine -channelName "myChannel" -objectIndex $index -e -cc cacheFile2 cacheBlend3;