Grasshopper

algorithmic modeling for Rhino

Hi all,

Quick question that I'm banging my head with.. I'm have 2 lists of points, each with 5 items. I want to, for example, select items 2 and 4 from list 1 and items 1,3,5 from list 2 -- then merge them together into a new list, keeping the order of the original index - ie. so the result is not 2,4,1,3,5 but 1,2,3,4,5.

Would really appreciate some help, I'm sure it's something quick, maybe it's just late:)

Thanks very much!

Adel

Views: 3848

Replies to This Discussion

use the weave component and your done...

And alternative method if you don't have a regular pattern or something like that:
Use two series component or whatever to create two list with the exact same indices... then merge the list in the same order that you did with the point list, and finally use the sort component with the merge indices list and the point list (use the indices list as the "guide" for the sort).
Thank you :) ...
Manuel,

How did you solve it, I'm having the same issue

Thanks
Here you go :) Good luck.
Attachments:
Thanks a lot Adel
no problems, give me a shout if you need help with it
Adel, I looked at your file but could not see how it works - what sort of input data order do I have to provide? I have the same problems with merging lists..

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service