Jump to content
Sign in to follow this  
anicg

Select last point in a line for transform

Recommended Posts

How do I select the last point in a line to transform it, I can do it manually but it will hardcode number 19, I may need to change the number of points and still keep that last point selected for transform.

last point in a line.JPG

Share this post


Link to post
Share on other sites
Posted (edited)

This point wrangle will create a "last_point" group with the highest number point:

if (@ptnum = @numpt-1){
    setpointgroup(0, 'last_point', @ptnum, 1, 'set');
    }

Transform the last_point group then. Could be even simpler in group expression.

Edited by kiryha
  • Thanks 1

Share this post


Link to post
Share on other sites

if you have several lines, you can run over primitives in a wrangle

int primpts[] = primpoints(0,@primnum);
setpointgroup(0,"last",primpts[len(primpts)-1],1,"set");

 

  • Thanks 1

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  

×