Bridge Script.gh (13.8 KB)
Hi all, I’m a beginner in Grasshopper and hope anyone can help me with this tip:)
So I made a script for making several bridges from various curves. But for each bridge, I have to copy the same script and set the curves again. Does anyone know if I can simplify them so I can use one group of script for different pairs of curves (every single curve is identical in shape)?
Thanks in advance!!
Maybe you could include the curves or a sketch so that people don’t have to guess what you’re making?
yes! I attached both 3dm. and gh. files. Hope it helps to understand my intention:)
I just wonder if there’s a way that I can use one script for all bridges so I don’t have to copy 20 times for 20 bridges
Bridge Script.gh (13.8 KB)
Bridge.3dm (2.4 MB)
Thank you,
Yes, the whole point of grasshopper is to be able to deal with data in Lists and Trees - a subject I think you need to study in more detail.
Here is one way to think about your problem:
Bridge Script (1).gh (35.2 KB)
-Sash
Bridge_2023Dec8a.gh (18.4 KB)
P.S. Curves are internalized, no need for Rhino file - which, by the way, is extremely slow to open and generates this error:
Thanks! it seems working. I will try to learn more about the list and trees components!
thanks for your help! I will go through the script and learn how it works
I don’t know how you created these pairs of curves? They do not appear to be parallel (one offset from the other) as the bridges appear to be wider in some places than others. But it should be noted that there are many ways to create “roads” from a single curve instead of a pair, including control of banking in turns (the outside higher then the inside), so water runoff is consistent. FYI
Example: