| スクリプト (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 //