移動先: 概要 戻り値 フラグ. MEL 例.

概要

transformCompare [-root] [dagObject dagObject]

transformCompare は 「元に戻す」が可能、「照会」が不可能「編集」が不可能 です。

引数として渡された 2 つのトランスフォームを比較します。同じ場合は、0 を返します。異なる場合は、1 を返します。コマンド ラインにトランスフォームを指定しないと、 アクティブ リストのトランスフォームが使用されます。

戻り値

int成功した場合は 0。transform1 と transform2 が等しくない場合は 1 です。

フラグ

root
ロング ネーム(ショート ネーム) 引数型 プロパティ
-root(-r) create
ルートの下位階層全体ではなく、ルートだけを比較します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

MEL 例

// Create some joints
//
select -d;
joint -p -3.226531 0 -4.866136 ;
joint -p 2.817897 0 -4.016915 ;
joint -e -zso -oj xyz -sao yup joint1;

// Compare 2 different joints, a 1 will be returned
//
select -r joint1 joint2;
transformCompare;

// Duplicate joint1 and compare the duplicate
//
select -r joint1;
duplicate;
select -cl  ;
select -r joint1 joint3 ;
transformCompare;