I used the VB Script in one of the attached forums. I was on 0.3
before I realized you could bring script into 0.5.
So of course my next question...
Now I want a list of lists.... Trees please.
A0 ,B0 , C0
A1, B1, C1
A2, B2, C2
David - Grasshopper is a marvel. Thank you for a fantastic and fun
program. I can just imagine it's potential with Data Trees,
Rhino.Command as an option in VBScript, and the ability to swap
components.
On Nov 19, 12:34 am, David Rutten <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> Sorting is indeed the answer. You need to sort the point list {A, A,
> A, B, B, B, C, C, C} so that it becomes {A, B, C, A, B, C, A, B, C}
>
> You'll have to create a list of numbers (which are the Keys used in
> the sorting operation), which will mutate the list correctly. For
> example:
>
> {0, 100, 200, 1, 101, 201, 2, 102, 202}
>
> You can made this list using Series or Range components.
>
> --
> David Rutten
> Robert McNeel & Associates
>
> On Nov 18, 8:32 pm, Eric <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > This is my first grasshopper script. Forgive the noob.
>
> > I am trying to instantiate a script that takes three points and
> > generates a modified triangle geometry. Works great for three points.
>
> > Then I'd like to do multiple sets of 3 points, and it works fine for
> > the straight lines.
> > But I have a piece of the script that adds a control point for a curve
> > a the base of the triangle. I run the piece of the script that
> > generates the point and bring it back to a curve and when I use only
> > one set of points, the points passed to the curve (using merge 3
> > streams) are of the form ABC and it creates one curve using ABC -
> > great.
>
> > For multiple point sets though, it returns the form AABBCC or
> > AAABBBCCC to the curve component and I get one long convoluted line
> > between them all. Can I get it to return ABC, ABC, ABC, etc? Maybe
> > merge streams is not the best method?
>
> > Basically, I have 3 point lists. How can I get it make three lines
> > using one point from each and continue that for each element on the
> > list.
>
> > Thanks.