Go to: Synopsis. Return value. MEL examples.
attributeExists (string $attr, string $node)
None
Variable Name | Variable Type | Description |
---|---|---|
$attr | string | Name of attribute to look for. |
$node | string | Name of node that will be searched. |
string $shapeName[] = `cone`; if (`attributeExists "scaleX" $shapeName[0]`) { print "Attribute exists\n"; } else { print "Attribute does not exist\n"; }