ghtree_to_list

compas_ghpython.utilities.ghtree_to_list(tree)[source]

Returns a list representation of a Grasshopper DataTree

Parameters

tree (Grasshopper.DataTree)

Returns

list

Examples

>>> tree = Tree[object]()
>>> [tree.Add(str("entry: " + str(i)), Path(Array[int]([i]))) for i in range(3)]
>>> items = ghtree_to_list(tree)