ジャンプ先: 概要. 戻り値. キーワード. フラグ. MEL 例.

概要

combinationShape [-addDriver] [-allDrivers] [-blendShape string] [-combinationTargetIndex int] [-combinationTargetName string] [-combineMethod int] [-driverTargetIndex int] [-driverTargetName string] [-exist] [-removeDriver]

combinationShape は、取り消し可能、照会可能、および編集可能です。

ブレンド シェイプ ターゲットのドライブ関係を作成または編集するコマンド

戻り値

Int編集モードでは、新しく作成された組み合わせシェイプ ノード名を返します。

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

キーワード

combination, target

フラグ

addDriver, allDrivers, blendShape, combinationTargetIndex, combinationTargetName, combineMethod, driverTargetIndex, driverTargetName, exist, removeDriver
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-addDriver(-add)
組み合わせシェイプにドライバを追加します
-allDrivers(-ald) query
組み合わせシェイプのすべてのドライバ
-blendShape(-bs) string create
組み合わせシェイプの関連付けられたブレンド シェイプ ノード

照会モードでは、このフラグは値を受け入れることができます。

-combinationTargetIndex(-cti) int create
組み合わせシェイプのドリブン ブレンド シェイプ ターゲット インデックス

照会モードでは、このフラグは値を受け入れることができます。

-combinationTargetName(-ctn) string create
組み合わせシェイプのドリブン ブレンド シェイプ ターゲット名

照会モードでは、このフラグは値を受け入れることができます。

-combineMethod(-cm) int createqueryedit
組み合わせシェイプの組み合わせ方法:
  • 0 : 乗算
  • 1 : 最低ウェイト
  • 2 : 最低ウェイト(スムーズ)
-driverTargetIndex(-dti) int createmultiuse
組み合わせシェイプのドライバ ブレンド シェイプ ターゲット インデックス
-driverTargetName(-dtn) string createmultiuse
組み合わせシェイプのドライバ ブレンド シェイプ ターゲット名
-exist(-ex) query
組み合わせシェイプが存在する場合
-removeDriver(-rmd)
組み合わせシェイプからドライバを削除します

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Set a blend shape target as combination target, and another two blend shape targets as drivers, using target indexes.
//
combinationShape -blendShape "blendShape1" -combinationTargetIndex 1 -driverTargetIndex 2 -driverTargetIndex 3;

// Add two blend shape targets as drivers to a blend shape combination target, using target names.
//
combinationShape -edit -blendShape "blendShape1" -combinationTargetName "TargetA" -addDriver -driverTargetName "TargetB" -driverTargetName "TargetC";

// Remove two blend shape targets from drivers of a blend shape combination target.
//
combinationShape -edit -blendShape "blendShape1" -combinationTargetIndex 1 -removeDriver -driverTargetName "TargetB" -driverTargetIndex 2;

// Change combine method of a blend shape combination target
//
combinationShape -edit -blendShape "blendShape1" -combinationTargetIndex 1 -combineMethod 2;

// Remove all drivers of a blend shape combination target.
//
combinationShape -edit -blendShape "blendShape1" -combinationTargetIndex 1 -removeDriver -allDrivers;

// Query all drivers of a blend shape combination target.
//
combinationShape -query -blendShape "blendShape1" -combinationTargetIndex 1 -allDrivers;