Grasshopper

algorithmic modeling for Rhino

Hello, hope you all had a good weekend... now back to work and with my restricted knowledge in grasshopper, even with all tutorials that I have done, I always find myself blocked by a problem... now with this definition I am trying to draw the green curve (see in first attachment) only if when one of the extension is greater than 1.5 m, and this curve should be drawn in the right side according to the largest extension... any help please

Views: 1076

Attachments:

Replies to This Discussion

I think you can use the dispatch component to separate your code depending on your IF statement.

Here is a solution for the question... but I was unsure about the bigger picture so I just fixed the specific question.  Your use of the shift paths and shift list don't seem necessary, but perhaps this is just a piece of a bigger definition that requires them.

You can achieve the If/then result without the dispatch component... I went ahead and used a dispatch component so you can see how it works. In this case I just used it to only pass on data if the two Extend Line amounts were NOT equal.  This is of course not necessarily what you want... so you can just take that part out.

Hope that helps.

Attachments:

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