Danny,
all data in grasshopper is stored in lists. For example, if you divide
a curve you'll get a list of points:
{Pt1, Pt2, Pt3, Pt4, ... , Pt50}
This list has fifty points inside, and each point in the list can be
access by the index. The first point has index 0 (zero), the next one
index 1 etc. etc. So, every list looks like this:
{0, 1, 2, 3, 4, ...., N}
If you want to extract a subset, which excludes the first and last
value, you need to know how many values you have (how big N is). You
can use the [List Length] component to measure a list dynamically.
Once you have N, you can make a new interval from 2 numbers. The first
number (A) is always 1, because you need to exclude the first item in
the list. The second number (B) is always [List Length]-2, because you
need to exclude the last item in the list:
http://grasshopper3d.googlegroups.com/web/SubSet%20by%20list%20length.png?gsc=ghG_kxYAAADqxzUERShQa9rMziTq666asJrAtjd9Fq-fV8M8HcFQDQ
--
David Rutten
Robert McNeel & Associates
On Oct 9, 2:08 am, Danny Dong <[EMAIL PROTECTED]> wrote:
> not sure how this works with the 'set one interval'
>
> I want to delete the 'first' and 'last' numbers of a list....
>
> any tips?
> thanks