Jump to content

Houdini Crashes When I Run this VEX


PlatinumFishy

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...