Find objects with identical names and add incremental numbering
Hi, I'm looking for a bit of maxscript to scan the names of objects in selection and add an increment for any identical names.
Lets say I have 9 objects with names like this:
table_1 table_1 table_1
door_1 door_1 door_1
chair_1 chair_1 chair_1
I would like to finish with this:
table_1 table_2 table_3
door_1 door_2 door_3
chair_1 chair_2 chair_3
I DONT want this (this is what I keep getting):
table_1 table_2 table_3
door_4 door_5 door_6
chair_7 chair_8 chair_9
By doing this, I can then make further modifications of my own to the objects, now that they have unique names.
Thanks so much in advance and i really appreciate any help! :)
Comments
...
Try this fn
Select some objects and run below code
bga
...
In cases when you have thousand objects on the scene then this fn is more practical
Argument "zeros" means how meny zeros ei. numbers you want to be unique number.
If we run next line of code, your let say 56 chair object will be named "chair_0056"
bga
how boout this
how bout using this as started
Hope that help you a little.
.
Post your code.
Tools and Scripts for Autodesk 3dsMax