Grasshopper

algorithmic modeling for Rhino

Hi!

I'm having a problem figuring out how to sort lists like this:

Basically this is taking first item on branch one, go to branch 2, take second item on it and so on, but I have really no clue how to solve this.

Thanks in advance for your help!

Views: 3265

Replies to This Discussion

There are many ways to "skin the cat"... here's one example.  I'm not claiming it is the most efficient.

\

Attachments:

Thank you very much!

In the meantime I helped my self with these massive operations.

But also not really elegant, I think...

this one will scale to the number of lists you have as well...it shifts the items in each list by the list number that it is (so list index 0 is shifted 0 spaces, list index 1 is shifted 1 space, etc.) Then you use the flip matrix component to output your values. This strategy is dependent on the number of items in each list being one less than the total number of lists.

Attachments:

Wow! This is what I wanted to achieve.

Thank you, David!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service