Design script example for NurbsCurve

num_pts = 6;

s = Math.Sin(0..360..#num_pts) * 4;

pts = Point.ByCoordinates(1..30..#num_pts, s, 0);

int_curve = NurbsCurve.ByPoints(pts);

primer geometry design script example not working,

  1. values after # turns gray
  2. Math not define
  3. Sin takes ony 1 argument given 3

Hi @Parshav_Kansara ,

You’ll have to paste this code into a Dynamo Code Block to make it work:

3 Likes