Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
logix1390

Deleting largest point number

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

Share this post


Link to post
Share on other sites

This is perfect Sepu! What exactly is this expression doing? What is the 0  and -1 ?

Really appreciate the help.

Share this post


Link to post
Share on other sites

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 by Sepu

Share this post


Link to post
Share on other sites

...or if you don't care about the order afterwards...simply Sort>Reverse>Delete point 0 (which was last/max previously)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0