Hi @scrappydog1958 ,
import rhinoscriptsyntax as rs
import math
def create_helix(A, B, C, t_min, t_max, step):
points = []
t = t_min
while t <= t_max:
x = A * math.cos(t)
y = B * math.sin(t)
z = C * t
points.append(rs.CreatePoint(x, y, z))
t += step
# Create the curve from the points
rs.AddInterpCurve(points)
# Call the function with parameters
create_helix(A=5, B=5, C=1, t_min=0, t_max=10, step=0.1)
You can find the documentation here you can do pretty much anything Rhino - Rhino and Grasshopper Developer Documentation (rhino3d.com)
Farouk
Summary
[29€] My First Book: ML in Rhino with Real Examples (100% money-back) - News - McNeel Forum
Programming samples, simple and advanced, comes with working code. For beginners aimed at Machine Learning in Rhinoceros. In case you wanna learn check it out.