is there a maya command or script that will purge a given string, removing any invalid characters (i.e. ones that aren't valid in an object name), just like Maya does internally when renaming objects using invalid character strings but, and here's the big BUT, WITHOUT returning a warning somewhere along the line?
I want to be able to do something like this:
stripInvalid("copy of LightGlow (blue).tga");
// Result: copy_of_LightGlow__blue__tga //
so, before I start writing "stripInvalid.mel", does anybody know if such a feature already exists?
remember, it's the absence of warnings that I'm most interested in so something like:
createNode unknown -n "node";
string $fixed = "copy of LightGlow (blue).tga";
$fixed = rename node $fixed
;
is no good.
:nathaN