移動先: 概要 戻り値 フラグ. MEL 例.

概要

color [-userDefined int] [objects]

color は 「元に戻す」が可能、「照会」が不可能「編集」が不可能 です。

このコマンドは、指定したオブジェクトの固定ワイヤフレーム カラーを設定してそのオブジェクトのクラス カラーにするか、または、-ud/userDefined フラグを指定している場合はユーザ定義カラーの 1 つを設定します。

戻り値

なし

フラグ

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

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

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 wireframe color of the sphere back to its default color
color sphere1;