移動先: 概要 戻り値 関連項目. フラグ. MEL 例.

概要

polyInstallAction [-commandName] [-convertSelection] [-installConstraint] [-installDisplay] [-keepInstances] [-uninstallConstraint] [-uninstallDisplay] name

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

ユーザが指定した動作を実行するために次のインストール/アンインストールを行います。

戻り値

string[]コンストレインをインストールする場合、インストールされたコマンドの作用対象となる項目を文字配列として返します。インストールしない場合、何も返されません。

戻り値の型は照会モードでは照会フラグが基になります。

関連項目

polyListComponentConversion, polySelectConstraint, polySelectConstraintMonitor

フラグ

commandName, convertSelection, installConstraint, installDisplay, keepInstances, uninstallConstraint, uninstallDisplay
ロング ネーム(ショート ネーム) 引数型 プロパティ
-convertSelection(-cs) create
オブジェクト モードで選択したすべてのポリゴンを完全に一致するコンポーネント選択に変換します。たとえば、ポリゴン メッシュが選択されている場合、
polyInstallAction -cs polyCloseBorder
は境界エッジをすべて選択します。
-commandName(-cn) query
以前インストールしたコマンドの名前を文字列で返します。
-installConstraint(-ic) createquery

C: actionname に対する選択項目の pickmask と内部コンストレインをインストールします。
Q: 現在のアクションで内部コンストレインが設定されている場合は 1 が返されます。
-installDisplay(-id) createquery

C: actionname に対するディスプレイ アトリビュートをインストールします。
Q: 現在のアクションで display が設定されている場合は 1 が返されます。
-uninstallConstraint(-uc) create
以前インストールした内部コンストレインをアンインストールします。
-uninstallDisplay(-ud) create
以前インストールした display アトリビュートをアンインストールします。
-keepInstances(-ki) create
最初に選択したインスタンスのみではなく、選択したすべてのインスタンスのコンポーネントを変換します。

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

MEL 例

// Will set pickmask to edges, install internal constraint
// so that only border edges may be selected.
polyInstallAction -ic polyCloseBorder;

// Same as previous, plus force the display of borders if the
// user didn't asked explicitely for it before.
polyInstallAction -ic -id polyCloseBorder;

// Shortcut for polyInstallAction -ic -id polyCloseBorder;
polyInstallAction polyCloseBorder;

// Assuming the previous install was for closeBorder,
// will release internal border constraint, but go on displaying
// borders if the user didn't asked explicitely for it before.
polyInstallAction -uc;

// Assuming the previous install was for closeBorder,
// will release internal border constraint, stop displaying
// borders if the user didn't asked explicitely for it before.
polyInstallAction -uc -ud;

// Shortcut for polyInstallAction -uc -ud;
polyInstallAction;