ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
jointDisplayScale(
float
, [absolute=boolean], [ikfk=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
jointDisplayScale は、取り消し可能、照会可能、および編集可能です。
このアクションにより、スケルトン ジョイントの現在の表示サイズが変更され、照会されます。ジョイントの表示サイズは、スケール係数でコントロールされます。スケール係数 1 が表示サイズの既定です(1 倍を表します)。単純なフォーマットにあっては、float 引数が既定のサイズに対する係数です。-a/absolute を使用すると、float 引数はジョイント表示サイズの倍率を表します。| float | スケルトン ジョイントの現在の表示サイズを返します。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
absolute(a)
|
boolean
|
|
||
|
||||
ikfk(ik)
|
float
|
|
||
|
||||
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);