Randomly select faces from a particular attribute

   2291   2   1
User Avatar
Member
19 posts
Joined: 11月 2019
Offline
Hi guys, I have a terrain that I have broken up a voronoi fracture and it has output an attribute called 'name' which is all the colored sections here:



I'm having real problems trying to randomly select some of these colored sections as primitives (faces) so that they can be saved as a group and then extruded, and used later.
I don't want to randomly select individual faces but randomly select whole groups (as you can see below in red):



If this can be done without VEX that would be great also.

Many Thanks

Attachments:
Screenshot 2021-01-14 144756.jpg (131.0 KB)
Screenshot 2021-01-14 145400.jpg (156.5 KB)

User Avatar
Member
381 posts
Joined: 11月 2016
Offline
Without Vex: I'd probably use a Pack node using your name attribute. Then a Group By Range to randomly group some of your pieces, and then an Unpack, using the transfer group parameter.
User Avatar
Member
19 posts
Joined: 11月 2019
Offline
Thanks for the reply, yeah I ended up using a group by range node with another work around to get the desired effect.
I struggle with creating custom attr in houdini and then re-using them elsewhere in the houdini scene to select points or primitives etc....it never seems to work in the way my brain works

Thanks
  • Quick Links