Grasshopper

algorithmic modeling for Rhino

Hi Guys,

I'm new in using grasshopper.

I have the following list:

true

true

true

false

false

true

true

Now i want to split the list above in 3 lists :

1. true true true

2. false false

3. true true

Any idea how I can do this ?

Thx Gerhard

Views: 3120

Replies to This Discussion

This was a hard one...

--

David Rutten

david@mcneel.com

Attachments:

Hi David,

looks really hard. I think this will solve my problem. I'll check it tomorrow.

Thanks a lot.

Gerhard

Hi David,

works well. This is, what I was looking for.

Thx again,

Gerhard

Another way, I think more straight forward:

I think there should be a component where you plug a flat list of data and a list of paths of the same length and creates a data tree.

Replace path component always works great! Great idea!

How would you create two separate lists of true and false??

Use Dispatch. Either connect your list of true and false values to both inputs, to end up with a list of "Trues" from the A output, and "Falses" from the B. Or just connect it to P (pattern) to use your list to filter another corresponding list, L.

Could you please provide an example??

Sure. Here is a quick one. The Random Number and Larger Than components are just used here to provide a list of True/False values and a corresponding list. The two groups to the right should explain the words above.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service