View Full Version : automatic renaming of hundreds of OM objects
12 December 2005, 07:53 PM
Is there a quick way using Xpresso to automaticaly renaming hundreds of objects in the OM? Let me clarify. I´m using Jenna´s Allie. I have 2400 spheres, and when doing current state to object (to export my spheres to do some dynamic sim), all the spheres under the new null have the same name. How do i go about renaming them? "sphere1" "sphere2" ...you get the idea.
Surely there´s a way using Xpresso, or maybe C.o.f.f.e.e.?
thanks in advance.
12 December 2005, 07:58 PM
Rui did a find & replace plugin sometime ago that i'm pretty sure had a sequential rename function in there.
Otherwise yes it can be done with a coffee script. Maybe rui could chip in and let us know.
12 December 2005, 08:01 PM
try this: http://www.bonkers.de/download/xp_indexer.c4d
Copy / Paste the object named index in your scene and place it as the first object above the to be renamed objects (just like in the xp_indexe.c4d file). Then enable the Xpresso tag (it will disable again automaticaly) and press "a" to refresh the scene.
12 December 2005, 08:02 PM
In Expresso alone it could also be done with an iterator or a link-list node(where you can dragdrop your objects when they are not in the same hierarchy).
then you would cycle through the link -list & use the string-functions to do the name operations.
If you have DiTools,
Ditools has some wonderful string-operation nodes.
--opps--- Srek has already the perfect example ;-)
12 December 2005, 08:51 PM
will try your solution srek. thanks as usual.
12 December 2005, 09:43 PM
tried it already, works like a charm!
12 December 2005, 09:44 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.