Jump to content
Sign in to follow this  

How to use nearpoint in vex

Recommended Posts

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);



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this