last point

   11230   2   2
User Avatar
Member
53 posts
Joined: 7月 2005
Offline
Hey.

This should be mega simple but for some reason I cant get to work.

I am trying to select the last point on a primitive to delete everything but.

So I have a delete sop, set it to points, and in it I want to type in a pattern/expression that goes
“$NPT-1”

My thinking is that because there is point#0. if I take the number of points minus one I should get the last point on a curve..

but why wouldn't this work?
-m-k-
User Avatar
Member
12 posts
Joined: 10月 2014
Offline
Its due to supported local variables by delete sop.
You could use $N ( supported local var that is one less than total number of points or prims ) in the pattern field
or use either of the following in expression field
$PT==$N
or
$PT==$NPT-1


Cheers,
-GM
User Avatar
Member
8837 posts
Joined: 7月 2007
Online
to delete last point make sure Entity parm is set to Points

then do one of:
- Delete By Pattern: $N
or
- Delete By Expression: $PT==$NPT-1
or
- Delete By Range: change Start to: $N

EDIT: too late
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links