logix1390 Posted June 24, 2017 Share Posted June 24, 2017 Hello, I am trying to delete the largest point number in a line procedurally. I have ten points , I want to delete point 10. I was trying to use npoints expression in the `group by range` sop, but no luck. It gives me the opposite result of grouping the smallest point number. Any thoughts? I'll attach my scene file for anyone who wants to take a look. Thank you. delete_largest_point_num.hip Quote Link to comment Share on other sites More sharing options...
Sepu Posted June 24, 2017 Share Posted June 24, 2017 you just need to add the npoints(0)-1 to the start, here is the HIP delete_largest_point_num_FIX.hip Quote Link to comment Share on other sites More sharing options...
logix1390 Posted June 24, 2017 Author Share Posted June 24, 2017 This is perfect Sepu! What exactly is this expression doing? What is the 0 and -1 ? Really appreciate the help. Quote Link to comment Share on other sites More sharing options...
Sepu Posted June 24, 2017 Share Posted June 24, 2017 (edited) no problem 0 just means, number of points of the first input geo -1 is because point numbers start at 0 and not 1 so you need subtract by one, you can middle click on the param and see it for yourself Edited June 24, 2017 by Sepu Quote Link to comment Share on other sites More sharing options...
Noobini Posted June 25, 2017 Share Posted June 25, 2017 ...or if you don't care about the order afterwards...simply Sort>Reverse>Delete point 0 (which was last/max previously) Quote Link to comment Share on other sites More sharing options...
Noobini Posted June 25, 2017 Share Posted June 25, 2017 aha...just found out a way for the non-coders... Quote Link to comment Share on other sites More sharing options...
logix1390 Posted June 26, 2017 Author Share Posted June 26, 2017 This is great guys, thank you, really helps ! 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.