Select all polygons on Y axis expression?

   2184   1   1
User Avatar
Member
1 posts
Joined: Aug. 2014
Offline
Hi,

I'm still fairly new to Houdini. I'm trying to figure out how to select all polygons on a specific axis.

For example, I want to create a dynamic Group that automatically includes all polygons on the side of a Box (+Y, for example) regardless of how many Axis Divisions it has.

I originally tried to do this using Group Range but I wasn't able to figure out how to consistently capture point numbers and prim numbers as they changed whenever the Axis Division number changed. I even tried to wrangle them via a Sort SOP without much luck.

Any ideas?

Thanks!
Sean
User Avatar
Member
1743 posts
Joined: March 2012
Offline
Try the Group Create SOP, turn off Base Group, turn on Keep by Normals, set Direction (0,1,0 for +Y), and set Spread Angle to something clearly less than 90, and it should select every polygon whose normal is less than that angle (in degrees) away from the specified direction. Hopefully that's what you were looking for.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
  • Quick Links