Go to: Synopsis. Return value. MEL examples.
string addPrefixToName(string $prefix, string $nodeName)
None
Variable Name | Variable Type | Description |
---|---|---|
$prefix | string | The string to add. |
$nodeName | string | The node name to be prefixed. |
addPrefixToName( "shaders:", "blinn1SG" ); // Result: shaders:blinn1SG addPrefixToName( "skel:", "joint1|joint2|joint3" ); // Result: skel:joint1|skel:joint2|skel:joint3 addPrefixToName( "invalid:", "" ); // Result: