Valent Posted July 7, 2018 Share Posted July 7, 2018 Hi, If I have a point(or a primitive) and need to know the value of an attribute on the point(or a primitive) which is on its left, how I can do that? Quote Link to comment Share on other sites More sharing options...
fencer Posted July 7, 2018 Share Posted July 7, 2018 Google > Houdini point cloud Quote Link to comment Share on other sites More sharing options...
Stephen Moroz Posted July 7, 2018 Share Posted July 7, 2018 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? Quote Link to comment Share on other sites More sharing options...
Valent Posted July 7, 2018 Author Share Posted July 7, 2018 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. Quote Link to comment Share on other sites More sharing options...
Stephen Moroz Posted July 7, 2018 Share Posted July 7, 2018 (edited) 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 July 7, 2018 by Stephen Moroz 1 Quote Link to comment Share on other sites More sharing options...
Valent Posted July 8, 2018 Author Share Posted July 8, 2018 Thanks, I will try 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.