How to group by name

   1700   3   0
User Avatar
Member
21 posts
Joined: April 2018
Offline
Hello

I've been trying to get this to work but just cant seem to.
All I'm trying to do is group my primitives if they have a certain set of characters in their name

My python and vex knowledge is very limited so unfortunately the docs and other forum posts are not very helpful as I do not understand what they are talking about.

All I know is that I can do this through either a python script, a primitive wrangle, or a partition. In this situation I just want to group these primitives in my imported file with the name UCX.


Is there some sort of bootcamp for learning houdini specific scripting? Or is it pointless without having a clearer understanding of something such as python.

Thanks
User Avatar
Member
5100 posts
Joined: Feb. 2012
Offline
Hi,

Put this rule in a Partition SOP:

group_$NAME
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
9384 posts
Joined: July 2007
Offline
you can use Group SOP
and in Base Group parameter type:
@name=*UCX*

you can also just type the same thing to any group parameter without even creating the group first
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
21 posts
Joined: April 2018
Offline
Thanks for your solutions.

The partition sop didn't seem to work for me as it just output duplicates:

Is there a reason this could happen?

But the group sop did work:
  • Quick Links