Notifications
Clear all

[Closed] Adding a Prefix to selected Objects

Hello Everyone,

Sorry for my noob question…but how would you go about adding a prefix to the selected objects in a scene? Like i’d have a button with a specific prefix, and as you click on it, it adds it to the selected object. I can’t get the adding the prefix part to work…

Any help is greatly appreciated

Thanks in advance!

Crono

5 Replies
 JHN

Hi Crono,


 thePrefix = "Prefix_"
 for o in (selection as array) do o.name = thePrefix + o.name
 

Should do the trick…

-Johan

 JHN

–double post please delete–

Thank you so much!! It works!

 PEN

How about using the tool that has been there for years and is built in.

Tools/Rename Objects

1 Reply
(@rustyknight)
Joined: 11 months ago

Posts: 0

You’ll put us all out of job Paul!!