algorithmic modeling for Rhino
Example I.1 from Nature of Code by Daniel Shiffman translated into the Grasshopper Python environment of Rhino 3d
Tags:
Comment
Hi Roger,
You did everything right, just made a typo at:
def __int__(self):
It should be:
def __init__(self):
instead.
Thanks Jake. Your doing an amazing job with these videos!
You are correct. It is only called when you are creating an instance.
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() )
?
Very nice Jake.
Hope we will see more of your Python videos.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!