Sunsheku 0 Posted May 19, 2019 (edited) Hello. I'm trying to delete first point and last point of geometry made with line node. Somebody have a solution for this? Edited May 19, 2019 by Sunsheku Share this post Link to post Share on other sites
6ril 83 Posted May 19, 2019 (edited) Hi, many ways to do that... here is one: make a "group by range" node, choose points as a group type, and put 0 for start, 1 for end, and check inverse range. This will select the last point. make another group, with point 0. blast those 2 groups. a shorter way would be a wrangler: put down a point wrangler node. and type this : removepoint(0,0); if(@ptnum == (@numpt-1)) removepoint(0,@ptnum); first line remove point 0 (the first point of the line). (0,0)means : (geometry entering slot number 0 of the node , point number 0) second line reads : if the actual point number is equal to the number of points minus one (the last point of the line) third line : remove that point Edited May 19, 2019 by 6ril Share this post Link to post Share on other sites
ThomasPara 114 Posted May 20, 2019 //set a wrangle to run over primitives int primpts[] = primpoints(0,@primnum); removepoint(0,primpts[0]); removepoint(0,primpts[-1]); 2 Share this post Link to post Share on other sites
Sunsheku 0 Posted May 22, 2019 Thanks! I got what i want to do! Share this post Link to post Share on other sites
zarti 61 Posted September 19, 2019 enter this in a Blast / Delete SOP group field : 0 `npoints(opinputpath(".",0)-1` .cheers 1 Share this post Link to post Share on other sites