Grasshopper

algorithmic modeling for Rhino

can anyone help me
I want to select an item from each branch of the tree.
it´s possible to transform the tree in the image into one that has the same structure but only one element per branch.

 

thanks

Views: 543

Replies to This Discussion

List Item set to 0 will select the first item from each branch. Or you can set the value to 0 and reverse the input to get the last value. But as there is always another way to get the same results you can also set the value to 1 and wrap the list to get the last one in this example

If there are two items in a branch, do you want the first or the second?

 

Basically what you need to do is use the [List Item] component. If you use Index=0 then you'll always extract the first item, if you use Index=-1 you'll always extract the last item. If you need control over individual items, then you'll need to generate unique indices.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks a lot

to create individual indexes for each branch would need to decompose the tree in several branches, as would?

The tree is already decomposed into several branches.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

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