Grasshopper

algorithmic modeling for Rhino

hello guys,

I am trying to import a data tree from grasshopper to python. and i choose list access as input type. but, later, when i try to get the length of the data tree, it gives the item numbers under each branches. actually, i want to get the numbers of tree branches. Also, when i print x[0], it give me the first item of all the branches. but what i want is items from the first branch???

how can i do this?

and also, i've read instructions in grasshopper.datatree. it said that you can get all items by grasshopper.datatree.alldata(self: datatree[T]). and in my case, i think the datatree[t] would be x. But it can't work. 

So, can anyone tell me  what datatree[T] refer to???

Views: 1258

Replies to This Discussion

Hi Aroving

Check the attached file,Datatree [T]) is used to create the datatree,http://bbs.shaper3d.com/thread-25794-1-2.html

Hi Aroving

Check the attached file,Datatree [T]) is used to create the datatree,http://bbs.shaper3d.com/thread-25794-1-2.html

hello, the attachment you sent can not be download, would you sent a copy of that for me? Thank you

HI

Attachments:

Thank you so much!!!

HI

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service