Grasshopper

algorithmic modeling for Rhino

Hi,

 

I'm pretty new to grasshopper and I can't figure this one out.

What I've got is two different curves. I want to make a list from wich you can choose curve 1, curve 2 or both.

I can input curve 1 and 2 in the list. But I don't know how to combine the two to make the third option.

 

I hope it is sufficiently clear what I'm trying to do.

Views: 8908

Replies to This Discussion

Hi,

 

Here is how I solved the problem. But I think there's an easier way of doing this.

My solution works like this: If the slider is at 0 or 1 the equals 2 sends a false signal to the dispatch.

When that happens the 0 or 1 goes on through too the List with Curve 1 and Curve 2 selecting either of them.

If the slider is at 2 the equals 2 sends a true signal to the dispatch, which lets the datastream containing the value 2 on too the series which generates the values 0 and 1 which go into the list selecting both curve 1 and curve 2.

 

Again, I think there must be an easier way of just combining the curves or datastreams containing them. Any help is much appreciated.

 

Greetings,

Julian

Attachments:

Hi,

 

New solution uses the Weave function. If someone needs an explanation he or she can leave a message.

 

Greetings,

Julian

I completely missed this one. Here's how I would have approached it:

 

using the Stream Filter component. Sets>Tree>Stream Filter

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service