algorithmic modeling for Rhino
Hi,
I still cannot figure out how to divide a list in python. Sure I could just split it in GH, but that's not what I am after.
I have rotated a list of points 6 times. I simply want each rotated list either on a data tree or a sublist/nested list.
I know this has been covered but I have yet to find a clear solution for my simple needs.
Tags:
I totally ingnored the code and I only included the process for nested python list and datatrees.
Its crude but I had limitted amount of time. Make sure you adapt the process correctly.
Let me know if any questions
Cheers,
M
This works but I had to flip the matrix of the nested list in order to get the 6 branches you wanted.
I guess there is a more elegant solution but this should be solved earlier in the code.
To convert the python list to the data tree I used the solution that Anders posted here:
http://www.grasshopper3d.com/forum/topics/building-data-trees-in-gh...
Best
Paul
For what it's worth, here are the simplest methods for reading/writing 2D datatrees that I know of. And for completeness, here are Giulio's methods for reading/writing arbitrarily complex datatrees.
nice one, thanks!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by