Combine more than two lists into one as separate branches

grasshopper
python
list
branches
data-tree

(Cubsfan685) #1

I want to be able to combine separate lists of points in one list as separate branches. The existing GHpython component I have will only work for two lists, but I need it to combine 3+ lists into one separated by branches. I will attach my script below.

Combine lists.gh (18.2 KB)


(Tom) #2

There are multiple possibilities to that. One of them: Merge all lists into one big. Use “Partition list” and feed in the individual list lengths in. That’s it.