移動先: 概要 戻り値 フラグ. 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 は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

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

戻り値

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) 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 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 )