Set minimum sine - graphmapper

hi, im trying to make sine curve among vertical curves (the sine shape is set right now as points). I also want that the minimum point of the sine will be at distance of 40 units from the original curve. does someone has any idea how can I do this?

Script attached

lib.3dm (2.7 MB) (7.7 KB)

Image of script ≠ script. Just attach the actual .gh file with geometry internalized.


One way to do it would be to find where 40 lies in your domain (0 to 250) and express 40 as a value between 0 and 1 in that domain. So lets call that new value X. Then use that X to define the new range of your domain: X to 1, where 1 is the previously defined max (250) and X is your new minimum (40). (17.4 KB)