Grasshopper

algorithmic modeling for Rhino

Trying to find a way to get all items in other branches into a current branch.  

So if I have the following data tree:

{0}
0. a
1. b
2. c
{1}
0. d
1. e
2. f
{2}
0. g
1. h
2. i

I want to end up with the following:


{0}
0. d
1. e
2. f

3. g
4. h
5. i

{1}
0. a
1. b
2. c

3. g
4. h
5. i

{2}
0. a
1. b
2. c

3. e

4. f

5. g

Thought maybe I could use relative Item but I cant figure out how to do an offset that includes multiples.

Views: 658

Replies to This Discussion

Are you sure about {2}-->"abcefg" instead of "abcdef" ?

you are right.  That's a mistake.  I figured out a method albeit a bit clumsy.

You can use "List compare" component fr "Tree Sloth" plug-in.

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