How to convert a grasshopper DataTree to a 3d nested python list?

I have a DataTree looks like this

what I need in python editor is a 3d nested list that reflect the tree shape, which means len(list)=3,the 3 sub list length are len(list[0])=5,len(list[1])=4,len(list[2])=4

but when I followed the instruction here:

I got a 2d list, which means len(list)=13=5+4+4,there is some information missing.

does anyone know how to convert a grasshopper datatree to a 3d nested python list?

1 Like

Take a look at this thread.

Thank you so much! It works. I did simplify the datatree.:joy: