スクリプト (MEL) |
MEL のみで使用可能 |
plugAttr |
カテゴリ: 一般 |
移動先: 概要 戻り値 MEL 例.
string plugAttr(string $plug)
このプロシージャは、指定したプラグのアトリビュート名を返します。一部のアトリビュート名には、複数の「.」で分離されたトークンが含まれる場合があります。たとえば、プラグ「ramp1.colorEntryList[0].color」の
アトリビュート名は、「colorEntryList[0].color」です。
なし
引数
変数名 |
変数型 |
説明 |
$plug | string | アトリビュート名を抽出するプラグ名です。 |
// Find the attribute name portion of checker1.color1
plugAttr "checker1.color1";
// Result: color1 //