Home Technical Talk

Maya: Renaming shape nodes issue

polycounter lvl 11
Offline / Send Message
Toast polycounter lvl 11
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

Sign In or Register to comment.