Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

Maya: Renaming shape nodes issue

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