group based on name attribute

   13571   7   2
User Avatar
Member
79 posts
Joined: March 2012
Offline
I am trying to group fracture pieces randomly in different groups so that I can split it further into small or medium pieces, but I want to keep track of the pieces.

How would I group it based on name attribute.
Edited by rizviali110 - May 17, 2016 14:14:05
FX - Artist / TD
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
You can output groups in the fracture sop ie chunk_1 etc etc . So in many ways all you need to do is create a attribute based on the chunk number you want to shatter more

Rob
Gone fishing
User Avatar
Member
79 posts
Joined: March 2012
Offline
circusmonkey
You can output groups in the fracture sop ie chunk_1 etc etc . So in many ways all you need to do is create a attribute based on the chunk number you want to shatter more

Rob


thanks for the reply, you mean voronoi fracture? how would I call it inside a group after it, for example if I wanted to pick a range randomly? and other range different from the previous range.
FX - Artist / TD
User Avatar
Member
79 posts
Joined: March 2012
Offline
i figured out a way with attribute create and opdigits(@name)
FX - Artist / TD
User Avatar
Member
1 posts
Joined: May 2016
Offline
Thanks for giving the solution to the problem which I faced.
iPhone app development company los angeles [fugenx.com]
User Avatar
Member
1853 posts
Joined: May 2006
Offline
Sounds like you found the solution you wanted, but in the name of completeness, a partition sop will do exactly what you want, ie, its purpose is to make groups based on attributes.

Eg, if you have a fractured object that has a name attrib for each chunk, you can append a partition sop, set the rule to $NAME, you get a group for each name.

Was surprised it worked with $NAME, but not @name, whereas the colour example works with @Cd. Oh well.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
79 posts
Joined: March 2012
Offline
thats nice, thanks, so can I select random groups, because its a string anyway, what would be the expression in delete sop afterwards if I use partition sop?
FX - Artist / TD
  • Quick Links