Grasshopper

algorithmic modeling for Rhino

Hello, I'm trying to retrieve a tree item from a list of generic data as follows:

 

{0;0;0} index 0,1,2

{0;0;1} index 0,1,2

{0;0;2} index 0,1,2

{0;1;0} index 0,1,2

{0;1;1} index 0,1,2

{0;1;2} index 0,1,2

{0;2;0} index 0,1,2

{0;2;1} index 0,1,2

{0;2;2} index 0,1,2

 

I'm tring to retrieve index number 1, from {0;0;1},{0;1;1},{0;2;1},

 

however the number of paths could change,  (the number of indices with not).  Is there a way to achieve this with the 'retrieve tree item' component, in particular by specifying this in a special way in the path input? for example setting the path to {0;*;1} which doesn't work by the way. If the 'retrieve tree item' component isn't the way to go, is there a better way?

 

thanks!

Views: 8640

Replies to This Discussion

If I understand correctly, "List Item" will do this.

- Giulio
You will need to use the Path Compare component and then cull a tree list from a Param Viewer and then use the Tree Branch component to select the desired branches and then finally use the List Item to get the correct data. To see all the options for Path Compare have a look at this thread: http://www.grasshopper3d.com/forum/topics/masking-and-addign-expres...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service