ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
cacheFileCombine([cacheIndex=boolean], [channelName=string], [connectCache=string], [keepWeights=boolean], [layerNode=boolean], [nextAvailable=boolean], [object=string], [objectIndex=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
cacheFileCombine は、取り消し可能、照会可能、および編集可能です。
指定したオブジェクトに対して複数の cacheFiles を結合、レイヤまたはブレンドするために使用できる cacheBlend ノードを作成します。
| string | 作成されたキャッシュ レイヤ ノードの名前 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
cache, file, disk, blend
cacheIndex, channelName, connectCache, keepWeights, layerNode, nextAvailable, object, objectIndex
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# 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.
#
cmds.select( 'cachedShape', r=True )
newBlend = cmds.cacheFileCombine()
# attach an additional cacheFile to the cacheBlend node
#
cmds.cacheFileCombine( newBlend[0], e=True, cc='cacheFile2' )
# query the index of the newly connected cache
#
cmds.cacheFileCombine( newBlend[0], cc='cacheFile2', query=True, cacheIndex=True )
# 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:
#
index = cmds.cacheFileCombine('cacheBlend3' ,object='armShape', query=True, objectIndex=True)
# Connect another cache up to drive the armShape
#
cmds.cacheFileCombine( 'cacheBlend3', channelName='myChannel', objectIndex=index, e=True, cc='cacheFile2' )