Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

Rename Object to Groups name
show user profile  FX
Thought I'd ask here before going to bug the guys at script-spot, is it possible to rename an object to it's groups name ?

I have a scene with with 1,400 objects each within it's own group. the objects are named object001. 002,003 etc etc, and the group has the name I want the object to be.


read 344 times
3/23/2015 8:42:20 PM (last edit: 3/23/2015 8:42:20 PM)
show user profile  herfst1
Tried the "rename" function? Should do what you need.

[edit] You know, the one built in to max found in the top menu, think under "edit"?
read 343 times
3/23/2015 8:43:32 PM (last edit: 3/23/2015 8:44:54 PM)
show user profile  FX
No that won't work, I need the object to adopt the groups name.
read 339 times
3/23/2015 8:50:52 PM (last edit: 3/23/2015 8:50:52 PM)
show user profile  Garp
Groups being themselves scene nodes, you would have name conflicts.
Or do you want to ungroup as well?

read 330 times
3/23/2015 9:33:23 PM (last edit: 3/23/2015 9:59:59 PM)
show user profile  FX
Yup, ditch the group and rename the object to the groups name.
read 322 times
3/23/2015 10:21:31 PM (last edit: 3/23/2015 10:21:31 PM)
show user profile  Garp
This should do.

read 318 times
3/23/2015 10:51:38 PM (last edit: 3/23/2015 10:51:54 PM)
show user profile  FX
Many thanks dude, it works a treat, although a little slow, it takes around 10 mins on a scene with 8000+ objects, so it's probably actually fast considering what it;s doing ;)

I forgot how bad max is with tons of little objects, choking up and barfing constantly.

Anyway no worries I only need to run it once, thanks again for your help.

read 308 times
3/23/2015 11:37:38 PM (last edit: 3/23/2015 11:37:38 PM)
show user profile  Garp
Ah, sorry for the slowness. If you're absolutely sure that each group contains exactly one object, you can use this instead:
ungroup (for x in objects where isGroupHead x collect (x.children[1].name =; x))
It should run noticeably faster.

read 296 times
3/24/2015 11:50:40 AM (last edit: 3/24/2015 11:50:40 AM)
show user profile  FX
Cheers Garp, I'll give it a go when i figure out how i got the wrl scene to come in as groups again, now it's coming in with each object linked to a helper containing the name I want :(

Something in the wrl conversion is funking things up, can't be arsed trialing and erroring my way to a solution today.

read 287 times
3/24/2015 2:19:57 PM (last edit: 3/24/2015 2:19:57 PM)
show user profile  FX
Holy shit Garp, 10 seconds for 8374 do you know this shit.? :O

Massive help , thanks again.
read 249 times
4/1/2015 2:42:30 PM (last edit: 4/1/2015 2:42:54 PM)
#Maxforums IRC
Open chat window