Grasshopper

algorithmic modeling for Rhino

Hi there,

I'm trying to created some Koch fractals using python, but for some reason when i try to append the "l" in the def to "lineList", the script editor comes up with "unexpected token". I've tried to alter it a few times but around that same area it just keeps failing! I need help!

Here's the link to the tutorial I was trying to emulate https://www.youtube.com/watch?v=iWfepR9gKDg

and here's the gh file I've been working on KochFractals.gh

thanks heaps

Views: 531

Replies to This Discussion

Hi Max,

You are not appending the polyline you create with AddPolyline, to lineList (line 37).
Other than that when accessing an element inside of list (or tuple) use the square brackets, not the round ones.

Attachments:

Simple as that! boy, thanks mate, you're a life saver!

much appreciated

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service