Color points if they are facing toward y

   1426   2   0
User Avatar
Member
31 posts
Joined: 8月 2017
Offline
Just like the title suggests, I would like to know if I can color points based on if their normal is facing a positive y value. Not sure how to write that in vex. So if its facing up its white if not then black. Thanks.

Attachments:
Untitled-1.png (175.7 KB)

User Avatar
Member
2629 posts
Joined: 6月 2008
Offline
In it's simplest form you could try this inside a point wrangle.
v@Cd = {1,1,1};
if (@N.y<0){v@Cd={0,0,0};}
Edited by Enivob - 2022年4月19日 22:26:47
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
31 posts
Joined: 8月 2017
Offline
Enivob
v@Cd = {1,1,1};
if (@N.y<0){v@Cd={0,0,0};}
This works perfectly thank you!
  • Quick Links