Grasshopper

algorithmic modeling for Rhino

hi @ll

im trying to learn a little of python...

for i in range(x):
    print(i)
    
    pt = (i, math.cos(i), 0)
    circle = rs.AddCircle(pt,i+1)
    circles.append(circle)
    a = circles
   

i recognizedthat if i only input i for the radius , skript fails.

i assume this is because of 0 is not ok for radius... how can i trick out this ?

thank you !

Views: 940

Replies to This Discussion

you need to make array for circles ex. a= []

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service