Create groups using bounds.

   1243   2   1
User Avatar
Member
2 posts
Joined: Nov. 2018
Offline
Hi everyone! I am start learning Hou some time ago. So, there is my problem. I have some points in space, and i create some bounds, which keeping bunch of points together. I want to create group for every bound with points, but if i use Group SOP, it make only one group of whole points in every bound, ignoring bounds quantity. I'm trying to use foreach, but have not get correct result. Can you explain me how to solve my problem prefably using only nodes if possible, or expressions if not.
User Avatar
Member
388 posts
Joined: Nov. 2016
Offline
Here's one way to do it, there probably are simpler ones. I do use an expression to refer to the iteration number to get different group names.

Attachments:
group_iterate.hip (133.3 KB)

User Avatar
Member
2 posts
Joined: Nov. 2018
Offline
Tanto
Here's one way to do it

Thank you Tanto i tried your way, and find my own.
Maybe it's not so simple, but works too.

I use Assemble to Create Named Attribute and Pack Geometry. It creates index number for each primitive bound.
Then i'm Transfer Attribute “name” from primitives to points and set the last node Partition with rule '@name' - it creates my groups.
Edited by ingleshveribet - Dec. 10, 2018 09:25:49
  • Quick Links