JDee Posted January 31, 2017 Share Posted January 31, 2017 Hi What I need is to find connected neighbors of every point of specific group. I guess that I need one loop inside of other loop in VOP, is it right way at all? so the firs one is for all the points I have in the group and then second one for all the neighbors for them? I feel like it's not so easy, with my knowledge of VEX. Is there more simple way, and how to specify group point numbers properly from outside VOP, so I don't need to set them manually in VOP every time ? Much appreciated any help. NFG.hipnc Quote Link to comment Share on other sites More sharing options...
iamyog Posted January 31, 2017 Share Posted January 31, 2017 a VEX solution int ls [] = array(); if (inpointgroup(0, "in", @ptnum)) { ls = neighbours(0, @ptnum); for (int i=0; i<len(ls); i++) { setpointgroup(0, "neighbours", ls[i], 1); setpointattrib(0, "Cd", ls[i], {1,0,0}); } } 1 Quote Link to comment Share on other sites More sharing options...
JDee Posted January 31, 2017 Author Share Posted January 31, 2017 45 minutes ago, iamyog said: a VEX solution It works perfectly thank you! Also found simplest solution for me with Group by edge depth, set it in 2 klicks, so it's actually grows your selection... yeah It's houdini. 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.