Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

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.

tia


read 406 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 405 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 401 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 392 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 384 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 380 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 370 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.name; x))
It should run noticeably faster.




read 358 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 349 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 groups...how do you know this shit.? :O

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


Support Maxforums.org