Jump to content

Sort Groups by Size


rich_lord

Recommended Posts

Hello Everyone.

I`ve got a load of groups, piece1, piece2, piece3......etc which each contain a set of primitives. Each primitive in each group holds an attribute which holds the size of all the primitives in that group when summed together.

The groups have a random size of geometry in them right now, but what id like to do is order them, so the group piece1 holds the smallest and the highest numbered group the biggest

Is there any way to do this?

Link to comment
Share on other sites

Could you turn the values into ints (multiplipy by a large number) and then in a foreach rename the group according to the attribute number? The sorting would then be implicit in the naming of the group.

Edited by Macha
Link to comment
Share on other sites

Macha - thats a cool idea! Thanks. I was really hoping to get a sequential ordering though, and I don`t think this is going to give me that.

I want to be able to match the group number with the point number of another object so I can copy stamp various sized objects onto it at precise locations.

I thought group number would be a nice way to order these objects into their size order for that purpose.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...