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
Tags:
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
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.
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?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by