Grasshopper

algorithmic modeling for Rhino

Hi all,

 

a bit of confusion when you import/export data/trees in python components. Attached is a screen-shot of a simple comparison example (x is on Tree Access) if anyone can tell me how after transposing a matrix of data in python I can reconstruct the data as tree branches, similiar to the flip matrix component. Why are guids appearing instead of point 

is there a good reference online for python/gh data management and rhino.common? trying to avoid as much as possible gh components. 

thanks

Pav

Views: 2137

Attachments:

Replies to This Discussion

Hi Pavlos

Grasshopper does not understand enumerables of enumerables, so you cannot return a list with lists inside. By itself, I do not think that it makes much sense to try to redo Grasshopper components, except if it's for the sake of satisfying curiosity. For DataTrees, especially, I would even suggest to try to avoid them as they are somehow a irksome topic in general.

However, if necessary, the specificity of Grasshopper datatrees was covered in detail in this somewhat long discussion. Does it help?

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

hi Giulio,

i'm not trying to redo GH components... but ok yes I am ! i'm just trying to iterate through a large set of point matrices that need to be transposed, without needing to use in GH a separate tree branch and flip matrix everytime the input points are changed.

Your link though has a lot of reading, the answer could be there !

thanks

Pav

In case someone follows up:

https://gist.github.com/piac/ef91ac83cb5ee92a1294

Python lists to data trees

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service