Grasshopper

algorithmic modeling for Rhino

Hi there,

I'm practicing "Classes" and hard to get the result I want.



In "Class" python I'm expecting "a" as list of points but I don't know how to get it.

I really appreciate your time and help!!

Views: 1364

Attachments:

Replies to This Discussion

your divideCurve method doesn't return anything. You should add something like

return ptList01, ptList02

Thanks raf2205.

I'm just curious....

Can you explain why I need "return" for using "class"?

Because without using class I could get divided points return.

I really appreciate your help!

you should have a look at 

http://docs.python.org/2/tutorial/controlflow.html

4.6 Defining Functions

One way may be this?

Attachments:

Interesting!

Yes, I found this tutorial awesome!!

Thanks fernando!

Thanks for your help raf2205!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service