Grasshopper

algorithmic modeling for Rhino

hi again!

Im trying to combine 2 list of data

FIRST:

0;0;0

0

1

2

0;1;0

0

1

2

0;2;0

0

1

2

SECOND:

0

1

2

3

4

5

6

7

8

9

is it clear enough?

im trying many the tools in Sets-List but maybe its something else.

Does anybody now to do it?

thanks a lot

N.

Views: 285

Reply to This

Replies to This Discussion

1. Unflatten second list , with unflatten component and for the gate use first list

It will have the same datatree, then you will be able to merge the two

thanks for reply Petras.

the point is that the second list its just a list of vectors came from a random tools.

it a simple list

I find path replace very versatile...

Attachments:

Julian Thanks a lot.

really helpful this GH!!!!

It helps me a lot to understand the basic of data flow

Petras

Now i understand what you mean.

thanks a lot too!!

N.

No problem... the issue you'll find with path replace, is that you need the same number of find terms as replace terms. Being aware of where you actually want to flatten to {0} rather than just trimming by one branch can make a big difference when you want to create generic components that can handle single items, lists or trees.

(I sometimes get caught out when I lazily flatten to zero when I should have only trimmed, the frustration when it works perfectly for a single input, but messes up the whole flow when I connect multiple trees of inputs that were intended to be treated separately from eachother)

I've attached a common pathreplace cluster component that I frequently use here.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service