divyanshfxartist Posted November 30, 2016 Share Posted November 30, 2016 Hi guys, I need to ask one quick question. How to use nearpoint expression in vex . Thanks in advance Quote Link to comment Share on other sites More sharing options...
dimovfx Posted November 30, 2016 Share Posted November 30, 2016 int nearp = nearpoint(0,point(1,"P",0)); if (@ptnum == nearp) v@Cd = set(1,0,0); nearpointVEX.hip Quote Link to comment Share on other sites More sharing options...
divyanshfxartist Posted November 30, 2016 Author Share Posted November 30, 2016 Thanks for your reply Alexander, Can you explain nearpoints expression also. I want to search in particular distance. Quote Link to comment Share on other sites More sharing options...
dimovfx Posted November 30, 2016 Share Posted November 30, 2016 you should know that VEX and expression are two separate languages in houdini. int nearpts[] = nearpoints(0, point(1,"P",0), ch("dist")); foreach ( int pt; nearpts ) if ( pt == @ptnum) v@Cd = set(1,0,0); nearpointsVEX.hip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.