I’m trying to write a simple script where I rename objects two ways.
- with a uniquename without suffix
- with a uniquename including suffix
I assumed that if you use (e.g. “board05”) as a base name and then use uniquename it would start at board05, board06, board07 etc etc but somehow my script starts at 01 every single time.
Also, if I include a suffix (e.g. “XY”), uniquename will not work incrementally at all. e.g using “board05” as the basename the new items will all be named “board01XY”, “board01XY”, “board01XY” etc
These are the lines im using:
(
for i in selection do i.name = uniquename base_name.text
)
and
(
for i in selection do i.name = uniquename base_name.text +"XY"
)
If anyone can point me in the right direction I would appreciate it.