ClearParameterColor

導入

v4.0

詳細

指定のリストの各パラメータから色をクリアします(設定されている場合)。

スクリプト構文

ClearParameterColor( [InputObjs] );

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 カラーをクリアする対象のパラメータのリスト

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

JScript の例

// This example demonstrates how to use the ClearParameterColor command by creating

// a simple null, adding a custom parameter and then setting the color of that

// custom parameter and then clearing it.

//

// STEP 1: Run the following script:

NewScene(null, false);

GetPrim("Null", null, null);

SIAddCustomParameter("null", "purple_param", siDouble, 0, 0, 1, null, 5, 0, 1, null, null);

SetParameterColor("null.CustomPSet.purple_param", 16711830);

//

// STEP 2: View that parameter color by opening the SceneExplorer (make sure that

// the option 'Use Wire Colors' is on) and expanding the CustomPSet node.

//

// STEP 3: To clear the parameter color, paste this line (uncommented) 

//         in the Script Editor and run it:

//

// ClearParameterColor("null.CustomPSet.purple_param");

関連項目

SetParameterColor