Grasshopper

algorithmic modeling for Rhino

Hi all,

I have a data tree with 3 branch levels and I would like to have one tree containing only the branches whose path ends with a zero (as shown bellow). 

I can't find the right tool for this... I tried the branch component with path {x; x; 0} and realised it doesn't like my input :)

Any ideas on this?

Thanks, nikos

Views: 6685

Replies to This Discussion

If you use the split tree component, you can feed a splitting mask that uses wildcards:

Many thanks David!

any idea why the mask you provided {?; ?; 0} does not work on the branch component as well?

(I'm guessing different type of input but just wanted to be sure)

Thanks again,

nikos

That's right...the tree branch requires that a path get passed to it, whereas the split tree accepts a text mask where you can use wildcard values. If you prefer to use it, you can do something like this instead:

far more complicated but it's good to see the logic behind some sequences. might come in handy in other situations!

cheers,

nikos

Many thanks David, this is magic!

please attach gh definition

came in late. david sorted it out.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service