list = []
for i in range(0, 10):
list.append(i+1)
list.append(i+2)
The first thing im questioning is how to put every loop into a new branch. Now it puts all values into one list, but I want to have every loop in a sepperate list. My second question is, how do I output this as a grasshopper list with branches?
import ghpythonlib.treehelpers as th
outer = []
for i in range(0,10):
inner = []
inner.append(i)
inner.append(i+1)
outer.append(inner)
result = th.list_to_tree(outer)