Haya8810 Posted January 26, 2023 Share Posted January 26, 2023 (edited) This highligted point has int attribute which is 1 and rest of points are 0. The problem is two primitive curves are exsisting. And I don't wanna use for each loop node if it's possible. Would it be possible to remove lesser point number than the highligted points in each curve? Edited January 26, 2023 by Haya8810 Quote Link to comment Share on other sites More sharing options...
uakin Posted January 26, 2023 Share Posted January 26, 2023 2 hours ago, Haya8810 said: This highligted point has int attribute which is 1 and rest of points are 0. The problem is two primitive curves are exsisting. And I don't wanna use for each loop node if it's possible. Would it be possible to remove lesser point number than the highligted points in each curve? //i@attr =1 for selected points int primpoints[] = primpoints(0,@primnum); int min = min(primpoints); int selPoint[] = findattribval(0,"point", "attr", 1); foreach (int sel;selPoint) { foreach (int pt;primpoints) { if (find(primpoints,sel)>=0 && pt<sel && pt>=min) { removepoint(0,pt,0); } } } Quote Link to comment Share on other sites More sharing options...
Haya8810 Posted January 26, 2023 Author Share Posted January 26, 2023 Thank you! That worked! 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.