Hi, I’m trying to create an interpolate curve through a set points which I also scripted in python.

import rhinoscriptsyntax as rs

from math import*

for i in range (0,100):

rs.AddPoints([(sin(i)*3),i,(cos(i)*3)])

I tried to referencing these points as

points = rs.AddPoints([(sin(i)*3),i,(cos(i)*3)])

rs.AddInterpCurve(points, degree=3)

,but it gives me error. How should I fix this?