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

概要

string plugAttr(string $plug)

このプロシージャは、指定したプラグのアトリビュート名を返します。一部のアトリビュート名には、複数の「.」で分離されたトークンが含まれる場合があります。たとえば、プラグ「ramp1.colorEntryList[0].color」の アトリビュート名は、「colorEntryList[0].color」です。

戻り値

なし

引数

変数名 変数型 説明
$plugstringアトリビュート名を抽出するプラグ名です。

MEL 例

  	// Find the attribute name portion of checker1.color1
		plugAttr "checker1.color1";
		// Result: color1 //