Grasshopper

algorithmic modeling for Rhino

Hi , i have  a piece of code copied from this web :http://code.algorithmicdesign.net/filter/encodedmatter/Quadaggregation

I keep importing it into rhino python script and just simply cant get it to work

It said

'

File "C:\Users\AppData\Local\Temp\TempScript.py", line 37
if dist

^
SyntaxError: unexpected token '<newline>'

How can i fix this , please help

Views: 2800

Attachments:

Replies to This Discussion

Well... I would say at least you should have sent a screen capture that shows line 37 in your code. I suggest to read this discussion before posting your next discussion.

From the error message I think you're missing the ":" after "if dist" in line 37. Change it to:

if dist:

   #whatever you have in line 38

sorry and reallyThx for bringing up the format, Didnt realize there is one. Btw this is line 37, what should i type in it? 

Two possible options.

It can be a check for minimum:

if dist < min: min = dist

or it's just a left over and you can remove it.

I typed in this line , and there is another one come up,saying : unexpected token "centre" 

A > or < is missing in that line. It should be something like:

if Precursor[0] > Center[1]:

Thank you very much , I got the script to work, But I just wonder, does it only do the grid generation, and the 3d extrusion is done by another script? because https://vimeo.com/54161646 in the later part of this video , there is a 3D version coming out , or its just manual effort?

and error like this also appear after I ran the script

I'm also trying to run this code.

treemanxx, did you succeed eventually?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service