Grasshopper

algorithmic modeling for Rhino

Hello,

I'm kind of new in the art of GS, but I wanted to apply this script on two identical curves and then try to connect the points vertically. The problem is that when I load both curves to initial curve component, it applies the script for just for one curve. I tried to copy-paste the script, load separately the curves and then merge together the points, but then I can't connect them vertically. Any solution?

Views: 437

Attachments:

Replies to This Discussion

You're using Curve Eval to create your division points (which is totally fine), but it seems you're providing a list of two curves and a list of N parameters. Since the Eval component operates on a single curve and a single parameter at the same time, it will treat the first curve and the first parameter together, then it will treat the second curve and the second parameter together, then it will treat the third curve and the third... oh wait! you only have two curves! Ok, so it'll fall back on the second curve and the third parameter, then the second curve and the fourth parameters, and so on and so forth.

You need to make sure that each curve is matched up with all the parameters. One way of achieving this is to GRAFT the curve list, so instead of a single list with two curves, it'll become two lists of one curve each. 

However I'm totally convinced this is the solution in your particular case because you didn't post the file and I can't check. I notice you're using a FLATTEN option in one place and it's possible that destroys any hopes you may have had of combining the correct data. It could be that you need to get rid of that flatten first. Post your file if you want more specific advice.

Hi David, 

Thanks for the quick reply. I did what you said, and it works! But, in fact, what I want to do is to do a uneven vertical openings to a facade with an atractor curve. It works well in the first part, but after that the facade does not react to the atractor curve. Can you please see what works wrong?

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service