Jump to content
Sign in to follow this  
PlatinumFishy

Houdini Crashes When I Run this VEX

Recommended Posts

So the intent is that this little bit of code will get the distance this point of "water" (blue colored point) is from "land" (green or yellow colored points) and then set it to an attribute that I created with a different point wrangle ("landrad" ) . Whenever I run the wrangle, Houdini freezes and I can't seem to figure out why. Now I know this code isn't "the most efficient way" of achieving this effect (I could probably cut out some code since pgfind puts them in order of closest to furthest so in theory, the first point to be a different color is going to be the closes), it was just the way I thought up last night before pondering it in bed. But it should still /work/. 

Also, sorry for the image. I am away from home and this is all I have. 

Also also, is here a way to break out of a foreach statement? Does "continue;" work in VEX?

IMG_1374.JPG

Edited by PlatinumFishy

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  

×