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

概要

manipScaleContext [-activeHandle float] [-editPivotMode] [-editPivotPosition] [-position] [-postDragCommand script string] [-preDragCommand script string] [-preserveChildPosition boolean] [-reflection boolean] [-reflectionAbout int] [-reflectionAxis int] [-reflectionTolerance float] [object]

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

スケール マニピュレータ コンテキストの作成、編集、照会を実行するときに使用します。

戻り値

string(新規コンテキストの名前)

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

activeHandle, editPivotMode, editPivotPosition, position, postDragCommand, preDragCommand, preserveChildPosition, reflection, reflectionAbout, reflectionAxis, reflectionTolerance
ロング ネーム(ショート ネーム) 引数型 プロパティ
-activeHandle(-ah) float queryedit
次の値を指定することができます。 0(X 軸ハンドルがアクティブ)、1(Y 軸ハンドルがアクティブ)、2(Z 軸ハンドルがアクティブ)、3(中央ハンドル(すべての軸)がアクティブ(デフォルト))です。
-position(-p) query
マニピュレータの現在位置を返します。
-editPivotPosition(-epp) query
ピボットの編集マニピュレータの現在位置を返します。
-reflection(-rfl) boolean
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-reflectionAbout(-rab) int
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-reflectionAxis(-rfa) int
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-reflectionTolerance(-rft) float
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-preDragCommand(-prd) script string createedit
コマンドおよびノード タイプを指定します。このコマンドは、指定されたタイプのノードが選択範囲内に入っているときに、ドラッグを開始すると実行されます。
-postDragCommand(-pod) script string createedit
コマンドおよびノード タイプを指定します。このコマンドは、指定されたタイプのノードが選択範囲内に入っているときに、ドラッグを終了すると実行されます。
-editPivotMode(-epm) query
マニピュレータが編集ピボット モードにある場合は true を返します。
-preserveChildPosition(-pcp) boolean queryedit
false の場合は、親が回転したときに子オブジェクトは移動します。true の場合は、親が移動しても子のワールド空間位置は維持されます。デフォルトは false です。

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

MEL 例

// To create a new scale context:
manipScaleContext;

// To query the active handle of an existing scale context:
manipScaleContext -q -ah manipScaleContext1;

// To edit an exiting scale context so that it comes up with the X axis
// handle active by default:
manipScaleContext -e -ah 0 manipScaleContext1;