Grouping primitives with an expression

   1476   2   1
User Avatar
Member
28 posts
Joined: Dec. 2012
Offline
Hi, so I'm new to Houdini and I have a question.

I see that in the group node you can ‘group by expression’. Consider a polygon mesh. Could you create a group that selected primitives/faces based on the number of points it has? So for example selecting all primitives that have more than ‘n’ points? If so what would that expression look like?

I don't know if this is a big ask or something ridiculously simple, so any help would be appreciated!

Thanks!
User Avatar
Member
8600 posts
Joined: July 2007
Online
you can use $NVTX variable which will return number of vertices that of each polygon
so code like this
$NVTX>4
will select all primitives with more than 4 vertices
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
28 posts
Joined: Dec. 2012
Offline
What a champion! Many thanks.
  • Quick Links