You guys could also use the Dispatch component, or Sublist component
to extract all the internal items from a list.
The sublist is probably easiest, since it requires an Interval which
is always {1; N-2} where N is the number of items in the list.
--
David Rutten
Robert McNeel & Associates
On Nov 13, 4:51 am, carter <[EMAIL PROTECTED]> wrote:
> thanks for the work. it is amazing how far it needs to be broken down
> to rebuild without the first and last.
> i like your way better than mine since it work on any list, not just a
> numbered list.
> i really appreciate your help.
> next question that seems simple but probably is not. generating boxes
> tangent to the curve that generated the points that we have culled the
> first and last from.
> how does one determine the vector that is perpindicular, or tangent to
> a curve at a specified point?
>
> thanks.
>
> carter
>
> On Nov 12, 9:13 pm, Rchitekt <[EMAIL PROTECTED]> wrote:
>
> > Ok... So, I had to go back to the drawing board after I actually tried
> > to make an example. I did end up using the Cull Pattern instead of
> > Cull Nth. What your looking for is a list of Boolean values (True and
> > False) that will tell you which ones to keep and which ones to
> > remove. So in order to do this, I used 2 different functions. The
> > first looks at the list and if the list is greater than 1 then it will
> > create a False value for the first number and True values for
> > everything after that. I then use a 2 function variable which looks
> > at the List Length and then says if X is not equal to Y... meaning you
> > will then get a list of values that are all True, except the last one
> > which will be False. I then use a Gate And function which combines
> > the two lists into one consolidated Boolean List, which I then feed
> > into the Cull Pattern. The result of the list removes the first value
> > and the last value. There may be an easier way to do this, but it at
> > least works. Here's a screenshot of the
> > definition:http://grasshopper3d.googlegroups.com/web/Cull_pattern_list.jpg?hl=en...
> > And here is a link to the source file if you want to download it and
> > put it to
> > use:http://grasshopper3d.googlegroups.com/web/Cull_pattern_list.ghx?hl=en
> > I hope this helps.
> > Best,
> > Andy
>
> > On Nov 12, 5:27 pm, carter <[EMAIL PROTECTED]> wrote:
>
> > > hi again andy,
>
> > > the cull Nth doesn't seam to work the way i want it to. if i tell it
> > > to cull an index one, it will then cull every one, if i tell it two,
> > > it will cull every second one...
>
> > > what am i doing wrong?
>
> > > thanks
>
> > > carter
>
> > > On Nov 12, 7:19 pm, carter <[EMAIL PROTECTED]> wrote:
>
> > > > very clear. thanks.
> > > > i am finding grasshopper is like that, most commands require an
> > > > absolute break down of the operations that you are trying to achieve.
> > > > an interesting way to think.
> > > > thanks again.
>
> > > > On Nov 12, 7:14 pm, Rchitekt <[EMAIL PROTECTED]> wrote:
>
> > > > > The second part of your question is pretty easy. Use Cull Nth instead
> > > > > of Cull Pattern. What your trying to do is to cull the first and last
> > > > > items from your list. So, you know the first item will have index
> > > > > number of 1. To find the end of your list, just use the List Length
> > > > > component. You may have to Cull your list twice, once for the first
> > > > > item, and once for the last item, but it should be pretty straight
> > > > > forward. This should give you what you need. I can try to put
> > > > > together a simple example if it isn't clear enough.
> > > > > -Andy
>
> > > > > On Nov 12, 3:49 pm, carter <[EMAIL PROTECTED]> wrote:
>
> > > > > > hi all,
>
> > > > > > another two part question.
>
> > > > > > first, say i create a series of boxes, and then i want to align them
> > > > > > along a curve. i took the staircase tutorial and i modified it to do
> > > > > > just such a thing. but what if i want to array them with just one
> > > > > > edge
> > > > > > aligning with the curve? rather than the center of the box.
>
> > > > > > second part. i set up a slider to have it array a variable number of
> > > > > > boxes along the curve. what if i want to eliminate the first and
> > > > > > last
> > > > > > box? all the cull operators seem to work off of a set number of a
> > > > > > list. as in 4 boxes, and no problem, false, true, true, false. but
> > > > > > what if i change the slider to 5 boxes? how can i get the cull
> > > > > > operator to change to false, true, true, true, false? without
> > > > > > changing it manually?
> > > > > > i know these are super noob questions, but i think answers will be
> > > > > > helpful to lots of people having difficulty with just getting
> > > > > > started
> > > > > > with grasshopper...
>
> > > > > > thanks,
>
> > > > > > carter