I'm also trying to make lists within lists, but in the context of
using Divide; ie I'm dividing a list of curves and want the output to
be lists (num of curves) of lists (pts divided on that curve).
Wouldn't it be easier to write a script (clearly i am more comfortable
with java, but bear with me) :

while crvNum < crvNumParameter {
     while ptNum < divideParameter {
        [insert divide code here]
        ptList[ptNum]  (assign points to list)
        ptNum++ (advance loop)
     }
     i = 0  (restart values to make new list)
     crvList[crvNum]  (assign crvs to list)
     crvNum++ (advance loop)
     }

Or something similar?  So the output would be a list that would look
like [1. {pt1, pt2, pt3, etc}, 2. {pt1, pt2, pt3, etc}, 3., etc].  Is
it not possible in grasshopper to bracket data to imply it is one
cluster of data?

David is this what you are saying would be unstable in grasshopper?
Should we give up on that idea until it gets developed?  It is
impossible to run my script making clusters of lists, it would be a
mess (and I want the number of lists to be a parameter anyway)....but
it seems like it would be a very logical simple script, something I've
used in other scripting programs.

--mary

On Jan 16, 4:56 pm, damien_alomar <[email protected]> wrote:
> Try this one...there are actually two components in there that split a
> list into 10 separate ones.  One that does it cyclically and another
> that does it in chunks.  I wasn't sure which one you wanted, and they
> were pretty much copies of each other anyway.  The second one (the
> "chunks") is more stable...the first one will probably fail if you put
> a list in that isn't divisible by 10.
>
> http://grasshopper3d.googlegroups.com/web/splitToTen.ghx?hl=en&gsc=nt...
>
> -Damien
>
> On Jan 16, 12:59 pm, Thøger <[email protected]> wrote:
>
> > Yes i know how to do it that way, but I don't want all that code :-)
>
> > But thanks anyway
>
> > On 16 Jan., 14:09, klint <[email protected]> wrote:
>
> > > e.g. what to do to split a list of 100 values into 10 lists of 10
> > > values
>
> > > Took it as a challenge, probably not to practical, unless you'll be
> > > doing it more than once.
>
> > >http://screencast.com/t/ebkBIZtGV
>
> > >http://screencast.com/t/Nlzc22Nj
>
> > > /Lars
>
> > > On 15 Jan, 21:15, Thøger <[email protected]> wrote:
>
> > > > e.g. what to do to split a list of 100 values into 10 lists of 10
> > > > values
>
> > > > On 15 Jan., 20:42, Thøger <[email protected]> wrote:
>
> > > > > How can i split a list into a number of lists with the same length?- 
> > > > > Skjul tekst i anførselstegn -
>
> > > - Vis tekst i anførselstegn -

Reply via email to