Search - User list
Full Version: How to group by name
Root » Technical Discussion » How to group by name
jimonions
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
animatrix_
Hi,

Put this rule in a Partition SOP:

group_$NAME
tamte
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
jimonions
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:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB