Hi,
I’m currently working on a script to rig dynamic ropes and I’m confronted to a renaming problem.
When I create the first rig in the scene everything is great:love:. But if I run the script again, maya start to mess up in the renaming process.
On the first run of the script auto-incrementation of the names causes no problem as I carefully store names in variable for reuse. But in the end of my script, I group my objects by category to avoid having 10k object in my outliner. And there’s the trick, long names changes and maya do not continue the auto-increment on the short names.
Well, actually, it only does it halfway. Meaning that the first object I create on the second run of the script is not incremented, but the second will have a correct incrementation in the whole scene.
Like that:
//first run
Section
Section1
Section2
Section3
//second run
Section
Section4
Section5
Section6
:curious:
So I’m quite confuse…
Is there a way to automatically increment this first name, or do I have to check all the names by myself in the script ?
