Go to: Synopsis. Return value. MEL examples.

Synopsis

string plugAttr(string $plug)

This procedure returns the attribute name portion of the specified plug. Note that some attribute names may contain multiple, "."-separated tokens. For example, the attribute name portion of the plug "ramp1.colorEntryList[0].color" would be "colorEntryList[0].color".

Return value

None

Arguments

Variable Name Variable Type Description
$plugstringThe plug name from which to extract the attribute name portion.

MEL examples

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