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

概要

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

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

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) boolean query
マニピュレータの現在位置を返します。
editPivotPosition(epp) boolean 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) boolean query
マニピュレータが編集ピボット モードにある場合は true を返します。
preserveChildPosition(pcp) boolean queryedit
false の場合は、親が回転したときに子オブジェクトは移動します。true の場合は、親が移動しても子のワールド空間位置は維持されます。デフォルトは false です。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

import maya.cmds as cmds

# To create a new rotate context:
cmds.manipRotateContext()

# To query the mode of an existing context:
cmds.manipRotateContext( 'manipRotateContext1', q=True, mode=True )

# To edit an existing context to come up with the X axis
# handle active by default:
cmds.manipRotateContext( 'manipRotateContext1', e=True, ah=0 )