algorithmic modeling for Rhino

Example I.1 from Nature of Code by Daniel Shiffman translated into the Grasshopper Python environment of Rhino 3d

Views: 460


You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by djordje on October 26, 2013 at 4:22pm

Hi Roger,

You did everything right, just made a typo at:

def __int__(self):

It should be:

def __init__(self):


Comment by djordje on September 24, 2013 at 3:48pm

Thanks Jake. Your doing an amazing job with these videos!

Comment by Jake Hebbert on September 24, 2013 at 3:40pm

You are correct.  It is only called when you are creating an instance.  

Comment by djordje on September 24, 2013 at 2:17pm

Mind if I ask one question:
The constructor (__init__ method) gets executed only when you create an instance of the class (w = walker() ). And that is it? It does not get executed again, once you call a certain function inside of object (like w.step() or w.point() )

Comment by djordje on September 19, 2013 at 2:45pm

Very nice Jake.
Hope we will see more of your Python videos.





  • Add Photos
  • View All

© 2020   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service