I can’t get this to run correctly, line 24 should work but I can only get the next line to work without rotation done correctly.

Anyone?..

```
import rhinoscriptsyntax as rs
import math
pts = []
for i in range(n):
x = math.sin(i)*scaleX
y = math.cos(i)*scaleY
z = i * scaleZ
pt = rs.AddPoint(x,y,z)
pts.append(pt)
curve = rs.AddInterpCurve(pts)
curveDomain = rs.CurveDomain(curve)
lineList = []
for i in range(n**2):
i = ((curveDomain[1]-curveDomain[0])/n**2)*i
t = rs.EvaluateCurve(curve,i)
pt2 = rs.AddPoint(t)
curveFrame = rs.CurvePerpFrame(curve,i)
vector = rs.VectorRotate(curveFrame[1],720*i,curveFrame[3])
#vector = rs.VectorRotate([1,0,0], 720*i, [0,0,1])
pt3 = rs.CopyObject(pt2,vector*math.sin(i)*scale)
line = rs.AddLine(pt2,pt3)
lineList.append(line)
spiralSurface = rs.AddLoftSrf(lineList)
curve_out = curve
spiralSurface_out = spiralSurface
```