ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
combinationShape([addDriver=boolean], [allDrivers=boolean], [blendShape=string], [combinationTargetIndex=int], [combinationTargetName=string], [combineMethod=int], [driverTargetIndex=int], [driverTargetName=string], [exist=boolean], [removeDriver=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
combinationShape は、取り消し可能、照会可能、および編集可能です。
ブレンド シェイプ ターゲットのドライブ関係を作成または編集するコマンド
| Int | 編集モードでは、新しく作成された組み合わせシェイプ ノード名を返します。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
combination, target
addDriver, allDrivers, blendShape, combinationTargetIndex, combinationTargetName, combineMethod, driverTargetIndex, driverTargetName, exist, removeDriver
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
import maya.cmds as cmds
# Set a blend shape target as combination target, and another two blend shape targets as drivers, using target indexes.
#
cmds.combinationShape(blendShape='blendShape1', combinationTargetIndex=1, driverTargetIndex=[2,3])
# Add two blend shape targets as drivers to a blend shape combination target, using target names.
#
cmds.combinationShape(edit='1', blendShape='blendShape1', combinationTargetName='TargetA', addDriver=1, driverTargetName=['TargetB', 'TargetC'])
# Remove two blend shape targets from drivers of a blend shape combination target.
#
cmds.combinationShape(edit='1', blendShape='blendShape1', combinationTargetIndex=1, removeDriver=1, driverTargetName='TargetB', driverTargetIndex=2;
# Change combine method of a blend shape combination target
#
cmds.combinationShape(edit='1', blendShape='blendShape1', combinationTargetIndex=1, combineMethod=2;
# Remove all drivers of a blend shape combination target.
#
cmds.combinationShape(edit='1', blendShape='blendShape1', combinationTargetIndex=1, removeDriver=1, allDrivers=1)
# Query all drivers of a blend shape combination target.
#
cmds.combinationShape(query='1', blendShape='blendShape1', combinationTargetIndex=1, allDrivers=1)