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

概要

hilite [-replace] [-toggle] [-unHilite] [objects]

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

指定したオブジェクトのハイライトを設定または設定解除します。オブジェクトのハイライトを設定すると、オブジェクトのコンポーネントを選択できるようになります。オブジェクトが指定されていない場合、セレクション リストが使われます。

戻り値

なし

フラグ

replace, toggle, unHilite
ロング ネーム(ショート ネーム) 引数型 プロパティ
-unHilite(-u) create
ハイライト リストから指定したオブジェクトを削除します。
-replace(-r) create
指定したオブジェクトにハイライトを設定します。前にハイライトされていたオブジェクトは、ハイライトされなくなります。
-toggle(-tgl) create
指定したオブジェクトのハイライトの状態を切り替えます。

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

MEL の例

//    Create a few objects.
//
string $sphere[] = `sphere`; move -relative 0 0 3;
string $cone[] = `cone`; move -relative 0 0 -3;
string $cylinder[] = `cylinder`;

//    Select the sphere.
//
select -replace $sphere;

//    Add the cone and cylinder to the hilite list.
//
hilite $cone[0] $cylinder[0];

//    Toggle the hilite state of the cylinder.
//
hilite -toggle $cylinder[0];

//    Replace the hilite list with the current selected objects.
//
hilite -replace;