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

概要

color [-rgbColor float float float] [-userDefined int] [objects]

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

このコマンドは、指定したオブジェクトの固定ワイヤフレーム カラーがそのオブジェクトのクラス カラーになるように設定するか、または -ud/userDefined フラグを指定している場合は、ユーザ定義カラーの 1 つを設定します。ユーザが浮動小数点 RGB カラーが必要な場合は、-rgb/rgbColor フラグを指定できます。

戻り値

なし

フラグ

rgbColor, userDefined
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-rgbColor(-rgb) float float float create
選択したオブジェクトに設定する、RGB カラーを指定します。
-userDefined(-ud) int create
選択したオブジェクトに設定する、ユーザ定義のカラー インデックスを指定します。有効な数値は 1~8 です。

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

MEL 例

// create a sphere and deselect it
sphere -n sphere1; select -d;

// Set the inactive wireframe color of the sphere to the
// first user defined color
color -ud 1 sphere1;

// set the inactive wireframe color to red using rgb
color -rgb 1 0 0 sphere1;

// set the wireframe color of the sphere back to its default color
color sphere1;