Jump to content

need to know the attribute of neighboring points


Recommended Posts

Hey, you can find the point numbers of neighbouring points using the 'nearpoints' vex function. That will return an array of point numbers from the nearest to the furthest. Then from there, you can reference the nearest point number in a point() expression to retrieve the value of the attribute. However I'm not sure what you mean by "left", since left will change depending on the angle of view. Could you clarify what you mean?

Link to comment
Share on other sites

59 minutes ago, Valent said:

Thanks for the reply, Stephen!  It's not the attribute from any closest point that I need, but I'd like to know which of the neighboring points possess certain attribute.

In that case, you can still use the nearpoints expression and then iterate through the array with a foreach loop to check if each of them posses that attribute

Edited by Stephen Moroz
  • Like 1
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...