Sort Primitive Number Around Boxed Edge

   1585   2   1
User Avatar
Member
4 posts
Joined: Dec. 2020
Offline
Aloha everyone,

I'll preface this post with the standard "I'm new to Houdini".

I'm having a bit of trouble figuring out how to sort primitives that are around a boxed edge (see attached screenshot). None of the standard Sort SOP options appear to give me what I need, so I'm reaching out for any help. Thank you in advance!

Attachments:
grid_sort_order_question.PNG (1.1 MB)

User Avatar
Member
2171 posts
Joined: Sept. 2015
Offline
You can set the sort node to use expression and then use the following:

atan2($TY,$TX)

Just change the TY and TX parameters to match the plane you wish the orientation to be, e.g. you may need it be atan2($TZ, $TX)....
User Avatar
Member
4 posts
Joined: Dec. 2020
Offline
Mahalo! Works perfectly
  • Quick Links