Grasshopper

algorithmic modeling for Rhino

Hello,

I'm looking to select geometry by a switch.

 

My expression works when I plug number. But when I plug geometry as variable. I don't get geometry as result.

 

Also:

-I need to bring my geometry trough a pipeline

-I need to run this on a mac.

 

See attached my Rhino and GH file

 

Thank a lot

Davoud

Views: 1391

Attachments:

Replies to This Discussion

This is very easy to do. You dont need those expressions (in fact in 2 years of using GH every day I have used them maybe once or twice) - they kind of defeat some of the advantages of having different components because you cant see the contents.

So what you want is the "stream filter", which is located in Sets > Tree. It has a G input, which represents the Input you want it to pass. So when you have just 0 and 1 you can also use boolean values (true and false). If you add more inputs (zoom in to add), then you can just use numbers for the index.

There is also the reverse called stream gate, where you have one input and select to which output it is routed.

I use stream filter and stream gate all the time, probably the ones I use the most, to switch between cases.

Attachments:

Hi Armin,

Thanks a lot your comment is very useful. I will change my the way I was thinking to do to avoid the switch 0/1

Thank you Davoud

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