Hello to everyone

I want to know if there’s a way to create a sine curve like this, but like a gaussian bell.

Can I move the maximum peak with an attractor point?

Lots of thanks

Hello to everyone

I want to know if there’s a way to create a sine curve like this, but like a gaussian bell.

Can I move the maximum peak with an attractor point?

Lots of thanks

This should get you close

sineCurve.dyn (12.4 KB)

```
//Number of Points
ct = 200;
//Amplitude Scale
as = 2;
//Period Scale
ps = 8;
//Base Curve
bc = NurbsCurve.ByControlPoints(Point.ByCoordinates([0,10,40,50],[0,20,20,0]));
cp = bc.PointAtParameter(0..1..#ct);
cn = bc.NormalAtParameter(0..1..#ct);
//Sine Curve
ds = Math.Sin(0..360*ps..#ct)*2;
ic = Math.RemapRange(at.DistanceTo(cp),as,0);
nc = NurbsCurve.ByPoints(cp.Translate(cn,ds*Math.Pow(ic,2)));
```

3 Likes

Thanks a lot. Dynamo is cool.

1 Like