ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
jointDisplayScale(
float
, [absolute=boolean], [ikfk=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
jointDisplayScale は、取り消し可能、照会可能、および編集可能です。
このアクションにより、スケルトン ジョイントの現在の表示サイズが変更され、照会されます。ジョイントの表示サイズは、スケール係数でコントロールされます。スケール係数 1 が表示サイズの既定です(1 倍を表します)。単純なフォーマットにあっては、float 引数が既定のサイズに対する係数です。-a/absolute を使用すると、float 引数はジョイント表示サイズの倍率を表します。
float | スケルトン ジョイントの現在の表示サイズを返します。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
connectJoint, ikHandle, ikHandleDisplayScale, ikSolver, ikSystem, ikSystemInfo, insertJoint, joint, jointCluster, jointLattice, mirrorJoint, removeJoint
absolute, ikfk
ロング ネーム(ショート ネーム) |
引数タイプ |
プロパティ |
|
absolute(a)
|
boolean
|
 
|
|
スケール係数とは異なり、float 引数を表示サイズとして解釈します。
|
|
ikfk(ik)
|
float
|
 
|
|
ik/fk スケルトン ジョイントの表示サイズを設定します。
|
|
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Half the display size with respect to the default size.
#
cmds.jointDisplayScale( 0.5 )
# Set the display diameter of the joint to 2 linear units.
#
cmds.jointDisplayScale( 2.0, a=True )
# Set the display diameter of ik/fk joints to 2 linear units.
#
cmds.jointDisplayScale(2.0, a=True, ik=True);