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

概要

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

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

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

戻り値

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

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

フラグ

activeHandle, editPivotMode, editPivotPosition, mode, position, postDragCommand, preDragCommand, preserveChildPosition, reflection, reflectionAbout, reflectionAxis, reflectionTolerance
ロング ネーム(ショート ネーム) 引数型 プロパティ
-mode(-m) int queryedit
リング モード。0(オブジェクト空間(デフォルト))、1(ワールド空間)
-activeHandle(-ah) int 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 rotate context:
manipRotateContext;

// To query the mode of an existing context:
manipRotateContext -q -mode manipRotateContext1;

// To edit an existing context to come up with the X axis
// handle active by default:
manipRotateContext -e -ah 0 manipRotateContext1;