Grasshopper

algorithmic modeling for Rhino

I have two lists I want to merge.  Both lists are structurally identical, each containing twenty lists.  I know the number of items in each of the twenty lists (they are the same in 'List 1' and 'List 2').

I want a merged list that contains list 0 from 'List 1', list 1 from 'List 2', list 2 from 'List 1', list 3 from 'List 2', etc.

See screen shot...

I understood 'Path Mapper' a year ago (forgotten!) but before investing more time trying to figure it out myself, I thought I'd ask first if anyone knows how to do this?

Code attached.  Thanks.

Views: 377

Attachments:

Replies to This Discussion

Hello !

Is this what you're looking for ?

YES!!!  Thank you FRiou so much.  I was hoping it was that simple and had looked at the 'Split Tree' component but had no idea how to write the "mask" you did - VERY COOL!

Code attached.

Attachments:

P.S.  I haven't watched this yet but it looks very useful:

Grasshopper Masterclass With David Rutten - 05 - Mask Notation Syntax

http://vimeopro.com/rhino/grasshopper-masterclass-with-david-rutten...

hi,

first step: isolate...

Attachments:

Thanks Raul, your approach works too.  The differences are:

  1. you need to 'Simplify' the input lists for 'Branch' to work.
  2. you need the extra 'Series' components to select alternate rows while the 'Split Tree' component uses the 'M (Mask)' input to accomplish the same thing.

Code attached using your method.  Thanks guys!

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service