Go to: Synopsis. Return value. MEL examples.
string stripPrefixFromName(string $prefix, string $nodeName)
None
Variable Name | Variable Type | Description |
---|---|---|
$prefix | string | The string to strip. |
$nodeName | string | The node name to be stripped. |
stripPrefixFromName( "shaders:", "shaders:blinn1SG" ); // Result: blinn1SG stripPrefixFromName( "skel:", "skel:joint1|skel:joint2|skel:joint3" ); // Result: joint1|joint2|joint3 stripPrefixFromName( "two:", "one:two:myNode" ); // Result: one:two:myNode