Grouping the shared primitives

   2521   4   0
User Avatar
Member
52 posts
Joined: 6月 2009
Offline
Hello guys,

I have two primitive groups in my scene. Some prims are common in both the groups. Is there a way to group the shared prims in a different group.? Should be an easy task but i couldnt find a way to do it.
User Avatar
Member
1921 posts
Joined: 11月 2006
Online
It's pretty easy. Put down a Group SOP and toggle Enable on the first tab to off. On the Combine tab, enter your new group name in the first Group field. Leave the ‘=’ alone and then in the next field choose one of your group names. Change the None option to Intersect and choose your other group in the next field. newgroup = group1 intersect group2.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
874 posts
Joined: 10月 2008
Offline
I'm making this up because I have no Houdini on this machine to test it but maybe group with an expression or attribute, something like this:

if( hasprim(group_name, surface_node, prim_num) == 1 && hasprim(other_group_name, surface_node, prim_num) == 1, 1,0 )
--
Jobless
User Avatar
Member
874 posts
Joined: 10月 2008
Offline
uups, Graham beat me with something that works for sure
--
Jobless
User Avatar
Member
52 posts
Joined: 6月 2009
Offline
Thanks a lot Graham and Soothsayer. I know this should be achieved easily in Houdini.
  • Quick Links