Grasshopper

algorithmic modeling for Rhino

Pick and Choose on tree level, or filter with tree input?

Hi all,

This may sound like a dozen other similar queries, but I haven't been able to find anything quite the same. I have two lists of arbitrary length, and a tree of boolean values. I'd like to replace each element in the tree with a copy of the corresponding list like so:

L1

(0) 'A'

(1) 'B'

L2

(0) 'C'

(1) 'D'

T

{0;1}(0) True

{0;2}(0) True

{1;0}(0) False

Desired Result

{0;1}

 (0) 'A'

 (1) 'B'

{0;2}

 (0) 'A'

 (1) 'B'

{1;0}

 (0) 'C'

 (1) 'D'

Any thoughts? This feels like it should be easy, but I can't figure out anything. Thanks!

Trygve

Views: 1819

Replies to This Discussion

I'm led to believe that the grouping of data is going to be feasible in GH 2.0 but in the mean time if your lists are simple enough then you can cheat by creating Text Strings so that you have csv list that you can split after selection

Yeah, I was using letters for clarity, but the problem came up with lists of points. Since the version number of 1.0 is still 0.9, it seems 2.0 might be a ways off? Anyways, thanks for the reply.

If its geometry that you you want to group that's easy!

GH 1.0 is closer than you think ;)

Oh right! Groups! Ok, well, that will help for now. Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service