Found This Thread:
Guess i’ll use Rhino Common instead of rs.AddNurbsCurve
import scriptcontext
import rhinoscriptsyntax as rs
import utility as rhutil
import Rhino
degree=2
pts = ([0,2,1],[5,10,10],[10,1,0.5])
points = rhutil.coerce3dpointlist(pts, True)
knots = [0,0,1,1]
weights = [1,1,x]
nc= Rhino.Geometry.NurbsCurve.Create(False,degree,points)
for i in range(nc.Points.Count):
nc.Points.SetPoint(i, points[i], weights[i])
a = scriptcontext.doc.Objects.AddCurve(nc)
NurbsTest_S.gh (3.6 KB)