Jump to content

Selecting Outer points


hyperforce

Recommended Posts

This is probably a very simple anwser and a beginner question, but I can't figure out how to do this (and yes I have checked the help file).

I have a polygon curve with a variable amount of points. What I want to do is delete the first and the last point with a delete node. But I can't seem to get the node to select the highest point number.

If anyone can give me a solution that would be greatly appreciated.

Edited by hyperforce
Link to comment
Share on other sites

In the Pattern field you should just be able to put something like this:

0 `npoints(opinputpath(".", 0))-1`

It deletes the first point and the last point by getting the number of points coming in and subtracting 1 since the point numbering starts at 0.

  • Like 1
Link to comment
Share on other sites

In the Pattern field you should just be able to put something like this:

0 `npoints(opinputpath(".", 0))-1`

It deletes the first point and the last point by getting the number of points coming in and subtracting 1 since the point numbering starts at 0.

Thanks, it works :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...