移動先: 概要 戻り値 フラグ. Python 例.
manipScaleContext(
[object]
, [activeHandle=float], [editPivotMode=boolean], [editPivotPosition=boolean], [position=boolean], [postDragCommand=[script, string]], [preDragCommand=[script, string]], [preserveChildPosition=boolean], [reflection=boolean], [reflectionAbout=int], [reflectionAxis=int], [reflectionTolerance=float])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
manipScaleContext は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
スケール マニピュレータ コンテキストの作成、編集、照会を実行するときに使用します。
戻り値の型は照会モードでは照会フラグが基になります。
activeHandle, editPivotMode, editPivotPosition, position, postDragCommand, preDragCommand, preserveChildPosition, reflection, reflectionAbout, reflectionAxis, reflectionTolerance
ロング ネーム(ショート ネーム) |
引数型 |
プロパティ |
activeHandle(ah)
|
float
|

|
|
次の値を指定することができます。
0(X 軸ハンドルがアクティブ)、1(Y 軸ハンドルがアクティブ)、2(Z 軸ハンドルがアクティブ)、3(中央ハンドル(すべての軸)がアクティブ(デフォルト))です。
|
|
position(p)
|
boolean
|
|
|
editPivotPosition(epp)
|
boolean
|
|
|
ピボットの編集マニピュレータの現在位置を返します。
|
|
reflection(rfl)
|
boolean
|
|
|
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
|
|
reflectionAbout(rab)
|
int
|
|
|
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
|
|
reflectionAxis(rfa)
|
int
|
|
|
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
|
|
reflectionTolerance(rft)
|
float
|
|
|
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
|
|
preDragCommand(prd)
|
[script, string]
|

|
|
コマンドおよびノード タイプを指定します。このコマンドは、指定されたタイプのノードが選択範囲内に入っているときに、ドラッグを開始すると実行されます。
|
|
postDragCommand(pod)
|
[script, string]
|

|
|
コマンドおよびノード タイプを指定します。このコマンドは、指定されたタイプのノードが選択範囲内に入っているときに、ドラッグを終了すると実行されます。
|
|
editPivotMode(epm)
|
boolean
|
|
|
マニピュレータが編集ピボット モードにある場合は true を返します。
|
|
preserveChildPosition(pcp)
|
boolean
|

|
|
false の場合は、親が回転したときに子オブジェクトは移動します。true の場合は、親が移動しても子のワールド空間位置は維持されます。デフォルトは false です。
|
|
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
# To create a new scale context:
cmds.manipScaleContext()
# To query the active handle of an existing scale context:
cmds.manipScaleContext( 'manipScaleContext1', q=True, ah=True )
# To edit an exiting scale context so that it comes up with the X axis
# handle active by default:
cmds.manipScaleContext( 'manipScaleContext1', e=True, ah=0 )