Dear Grasshopper! I have tried to make a script that takes a stack of paper and lays them out page by page 1-250.
The order of the stack is important as the stack gets smaller from the top to the bottom.
In the script, it looks like that order gets messed up instead of going from 1 directly to 250.
I’m confused if the problem is how I am orienting geometry or if it is a data tree problem?
Can anyone advise me on how to properly array 250 items without messing up the order ?
Attached in pagePrint 2 - it works as crvs without hole punches
in pagePrint 3 I turned the items into surfaces (trimmed with hole punch) so that I wouldn’t have to orient the curves as groups (I thought it would be easier) but it looks like the order is messed up (maybe it is because I had to produce planar surfaces instead of existing curve geometry?)
hi Joseph! I think this is the method that produced the ‘stack of paper’ geometry. Thisrhino file should link the geometry to the initial scripts I uploaded. I tried to array the stack in the xy coordinates, to unstack each sheet of geometry across the x, or y axis.
Thank you so much for your help - the definition you wrote to produce that arrayed stack is a cleaner version of the one that was made to produce it initially as well
And yet you didn’t mention that? (or didn’t use the common term for it, “nesting”)
I can’t open your R7 .3dm file in R6. Good luck.
P.S. The cyan group does a simplistic linear layout, very far from true nesting which is an iterative process that gets complex if you want to minimize waste.
I was never able to figure out the issue after remaking the geometry so that it is native to gh instead of being input, as the numbers would never consecutively be nested from beginning to end.
Maybe a simple example to start with, if I were making a text dot script to just number a set of 100 or so crvs, why is it that at 75 it jumps to 101 and mixes the sequence up?
I must me fundamentally missing something regarding trees?
How might I clean the list so I can select the 100 crvs and have the dots created from top to bottom of list?
this just depends on the order in which your curves are internalized (read “clicked”) inside the original “curve” parameter
as your curves are all aligned along the Y axis, one simple method to re-order them could be to take on point for each of them, and just reverse-sort them by Y value, like: