SetParameterColor

導入

v4.0

カテゴリ

アニメーション プロパティ

詳細

指定のリストに各パラメータのカラーを設定します。 F カーブに割り当て済みのカラー(x、y、z など)が存在する場合は、このユーザ カラーがデフォルト カラーになります。 このカラーは、SceneExplorer のノード カラー、FCurveEditor のカーブ カラー、および DopeSheet のキー カラーとして使用されます。

スクリプト構文

SetParameterColor( [InputObjs], [Value] );

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 カラーを設定するパラメータのリスト

デフォルト値:現在選択され、マーキングされているパラメータ。

Number 使用するカラー値。次のような 16 進数表記で表します。

0x00bbggrr

最下位バイトに赤の相対強度、2 番目のバイトに緑の値、3 番目のバイトに青の値が含まれます。 上位バイトは 0 でなければなりません。 シングル バイトの最大値は 0xFF です。

デフォルト値:カラーエディタダイアログがポップアップする場合はNone

VBScript の例

' This example demonstrates how to use the SetParameterColor command by creating
' a simple null, adding a custom parameter and then setting the color of that
' custom parameter.  It also sets a simple animation on that custom param so
' there is a curve to display in the AnimationEditor.
'
NewScene, False
GetPrim "Null"
SIAddCustomParameter "null", "yellow_param", siDouble, 0, 0, 1, , 5, 0, 1
SetParameterColor "null.CustomPSet.yellow_param", 65520
SaveKey "null.CustomPSet.yellow_param", 1, 0
SaveKey "null.CustomPSet.yellow_param", 50, 1
SaveKey "null.CustomPSet.yellow_param", 100, 0.5
' 
' If you wish you can now view that parameter color by opening a SceneExplorer
' (make sure that the option 'Use Wire Colors' is on) and expanding the CustomPSet
' node, or opening the FCurveEditor or DopeSheet (from with the Animation Editor)
' and viewing the curve/track.

関連項目

ClearParameterColor