Grasshopper

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. 

Thank you. 

Views: 624

Attachments:

Replies to This Discussion

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

Attachments:

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

Attachments:

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!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service