hyperforce Posted November 7, 2010 Share Posted November 7, 2010 (edited) 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 November 7, 2010 by hyperforce Quote Link to comment Share on other sites More sharing options...
graham Posted November 7, 2010 Share Posted November 7, 2010 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. 1 Quote Link to comment Share on other sites More sharing options...
hyperforce Posted November 7, 2010 Author Share Posted November 7, 2010 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 Quote Link to comment Share on other sites More sharing options...
anim Posted November 7, 2010 Share Posted November 7, 2010 you can simply use 0 $N as a pattern or delete by range and put $N instead of 2 in Select_of_ parameter 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.