How to group by name

   1158   3   0
User Avatar
Member
21 posts
Joined: 4月 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
4547 posts
Joined: 2月 2012
Online
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]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
8634 posts
Joined: 7月 2007
Online
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
FX Supervisor
Method Studios, NY
User Avatar
Member
21 posts
Joined: 4月 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