Grasshopper

algorithmic modeling for Rhino

Hi,

I've got a question concerning lists and their indices. In my example (as shown on the screenshot) I start with this list:
{0:0}
0
1
2
3
{1:0}
0
1
2
3
{2:0}
0
1
2
3
{3:0}
0
1
2
3
What I want to do now is select and group together list items by their index. {0:0} and {2:0} also {1:0} and {3:0}. They way I'm doing this at the moment is quite complicated and I'm sure there's an easier way to achieve the same result.
maybe someone in here knows a solution?
thanks a lot

Views: 1932

Attachments:

Replies to This Discussion

I'm not sure i follow. I'm going to guess and think that you want to group the even paths together and the odd paths together. There are several ways to do this. A needlessly complicated way could be using the new Path Mapper component like this:

I'm not sure if the "mod" operator is available to be used inside a mask, but that seems to work.
hi valentin

one solution is to explode your tree and merge the branches you want(logic/tree/explode tree)
or another when you have a greater amount of lists connect a paramviewer cull the tree information twice with a cull frequency(one inverted) use this path information with a branch component and weave the data lists together
-to]

works perfectly! thanks a lot!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service