SOP to orient/align a poly to ortho axes

   646   2   0
User Avatar
Member
74 posts
Joined: Jan. 2015
Offline
Is there a SOP (either native, or Labs or qLib) that will take a rectangular poly, floating in space at some strange angle, and align the sides of the poly to major axes (whichever)? I can compute the poly's normal and use it with "dihedral" in vex, but I wonder if there's a native SOP just for this.
User Avatar
Member
4515 posts
Joined: Feb. 2012
Offline
You can use Bound SOP (Rectangle) and Extract Transform SOP to do this:

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 | animatrix2k7.gumroad.com
User Avatar
Member
74 posts
Joined: Jan. 2015
Offline
Cool, thank you.
  • Quick Links