Carrying subsets of a list all the way through

I’m inserting a number of sets of curves, extruding them based on an attractor curve, but now I need to split this list of Breps apart again to assign color by the set of original curves. I’ve tried just splitting this into 13 scripts, but the attractor curve height does not stay consistent which is a little strange. All thoughts appreciated!

Semi-Manual Heat Map - Waterfall.gh (94.5 KB)

1 Like

This can be achieved by using Entwine.

In order for the Remap Numbers component to work correctly, you need to flatten the N input of the Bounds component. You could even flatten everything and unflatten the capped breps based on the entwined input tree…

Semi-Manual Heat Map - Waterfall - Entwine.gh (204.3 KB)

To learn more about lists and data trees, take a look at the Modelab Grasshopper Primer:

Designing with Lists | The Grasshopper Primer Third Edition (gitbooks.io)

PS: Your file is missing an attractor curve…

1 Like