Grasshopper

algorithmic modeling for Rhino

how do i vbscript to access different items in the different paths of a data tree? i would like to move the items a certain distance depending on which tree path/branch it is in .. ie i would like all items on path/branch 0 to move distance A; all items on path/branch 1 to move distance B etc

Views: 1245

Replies to This Discussion

Right now the scripting components do not have access to data trees. They can create them, but they won't be able to be brought into the component. Vicente had a rough solution, which required getting the list, strings of the paths, and lengths of each tree individually. It works, but its not pretty. This has been requested to acknowledge data trees, but I'm not sure where it fits in terms of what David's done/planning to do.

http://grasshopper3d.ning.com/forum/topics/flatten-branches-but-not...
well, i have since tried a solution of getting number of paths and path lengths and scripting the move accordingly... long way to go about it ... would be useful if one could access the data tree through scripting at some point... hopefully this area is something which is not at the bottom of the to -do list!
Making it all in GH components, you could do it in this way
Attachments:
thanks for your help ... it is a start ... hopefully at some point grasshopper will allow for scripting components to access the data tree ... once again.. many thanx

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service