Hi,
During my workflow, I have to import some objects, unfortunately the transforms and shape nodes import with the same name. Maya does not like this.
I have this script to rename shape nodes and it works ok.
for ($i in `ls -sl -dag -shapes -l`){
$parent=`listRelatives -p $i`;
rename $i `substitute ((string)$parent[0]) "s/[0-9]*$/Shape$0/"`;
}
BUT it causes Maya to freeze when the loop hits an instanced object.
Is there anyway to fix the script to stop it from crashing Maya?
Replies
Apart from namespace issues, it works so much better than Autodesk's FBX.
running the above script on any of these meshes in the zip file freezes Maya
https://www.dropbox.com/s/fxpfsbhxclgdlb1/craaaaash.zip