At my company, Im working on the objects data base. It’s a big one : 17 500 .max files.
All my .max files have a good file name. By inside the files, I want the mesh to have the FileName.
I use “batch it max”. That allow me to run the following little script in every max file automatically :
actionMan.executeAction 0 “40021” – Selection: Select All
$.name = maxFileName
$.name = trimRight $.name “.max”
When I have only one mesh in the file, no problem. it’s work.
But, when I have multiple mesh in the scene, the script goes wrong.
So, what can I add in the script if I want to rename multiple mesh with the same name ?
For exemple :
My filename is : test.max
in the file I want :
mesh1 : filename01
mesh2 : filename02
I really need your help. I can’t find any issues.
Thanks a lot