ジャンプ先: 概要. 戻り値. フラグ. MEL 例.

概要

manipScaleContext [-activeHandle int] [-alignAlong float float float] [-currentActiveHandle int] [-editPivotMode boolean] [-editPivotPosition] [-mode int] [-orientAxes float float float] [-orientTowards float float float] [-pinPivot boolean] [-position] [-postCommand script] [-postDragCommand script string] [-preCommand script] [-preDragCommand script string] [-preserveChildPosition boolean] [-preserveUV boolean] [-preventNegativeScale boolean] [-reflection boolean] [-reflectionAbout int] [-reflectionAxis int] [-reflectionTolerance float] [object]

manipScaleContext は、取り消し可能、照会可能、および編集可能です。

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

戻り値

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

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

フラグ

activeHandle, alignAlong, currentActiveHandle, editPivotMode, editPivotPosition, mode, orientAxes, orientTowards, pinPivot, position, postCommand, postDragCommand, preCommand, preDragCommand, preserveChildPosition, preserveUV, preventNegativeScale, reflection, reflectionAbout, reflectionAxis, reflectionTolerance
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-mode(-m) int queryedit
移動モード:
  • 0 - オブジェクト空間
  • 1 - ローカル空間
  • 2 - ワールド空間(既定)
  • 3 - 頂点法線に沿って移動
  • 4 - 回転軸に沿って移動
  • 5 - ライブ オブジェクト軸に沿って移動
  • 6 - カスタム軸方向
-activeHandle(-ah) int queryedit
マニピュレータの既定のアクティブ ハンドルを設定します。つまり、ツールを有効にしたとき最初にアクティブにするハンドルです。次の値を指定することができます。
  • 0 - X 軸ハンドルがアクティブ
  • 1 - Y 軸ハンドルがアクティブ
  • 2 - Z 軸ハンドルがアクティブ
  • 3 - 中央ハンドル(すべての軸)がアクティブ(既定)
-currentActiveHandle(-cah) int queryedit
マニピュレータのアクティブ ハンドルを設定します。次の値を指定することができます。
  • 0 - X 軸ハンドルがアクティブ
  • 1 - Y 軸ハンドルがアクティブ
  • 2 - Z 軸ハンドルがアクティブ
  • 3 - 中央ハンドル(すべての軸)がアクティブ
-position(-p) query
マニピュレータの現在位置を返します。
-editPivotPosition(-epp) query
編集ピボット マニピュレータの現在位置を返します。
-orientAxes(-oa) float float float queryedit
軸を中心に回転するマニピュレータの向きを指定した角度だけ変えます。
-orientTowards(-ot) float float float createedit
アクティブ ハンドルをワールド ポイント方向へ向けます。
-alignAlong(-aa) float float float createedit
アクティブ ハンドルをベクトルに沿って揃えます。
-reflection(-rfl) boolean
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-reflectionAbout(-rab) int
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-reflectionAxis(-rfa) int
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-reflectionTolerance(-rft) float
このフラグは現在サポートしていません。対称(Reflection)は、symmetricModeling コマンドを使用した選択自体の一部として管理されます。
-preCommand(-prc) script createedit
ツールを開始したときに実行されるコマンドを指定します。
-postCommand(-psc) script createedit
ツールを終了したときに実行されるコマンドを指定します。
-preDragCommand(-prd) script string createedit
コマンドおよびノード タイプを指定します。このコマンドは、指定されたタイプのノードが選択範囲内に入っているときに、ドラッグを開始すると実行されます。
-postDragCommand(-pod) script string createedit
コマンドおよびノード タイプを指定します。このコマンドは、指定されたタイプのノードが選択範囲内に入っているときに、ドラッグを終了すると実行されます。
-editPivotMode(-epm) boolean query
マニピュレータが編集ピボット モードにある場合は true を返します。
-preserveChildPosition(-pcp) boolean queryedit
false の場合は、親が回転したときに子オブジェクトは移動します。true の場合は、親が移動しても子のワールド空間位置は維持されます。既定は false です。
-preserveUV(-puv) boolean queryedit
false の場合、uv は頂点の編集に合わせて変更されません。true の場合、頂点の移動につれてテクスチャがずれるのを止めるため、新しい値を投影するように uv が編集されます。
-pinPivot(-pin) boolean queryedit
コンポーネント ピボットを固定します。コンポーネント ピボットが設定され、固定されると、選択項目の変更によってピボットの位置と方向がリセットされなくなります。
-preventNegativeScale(-pns) boolean query
これが true である場合、負のスケールは使用できません。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

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;