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
Tags:
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by