Previous Thread  Next Thread

chat icon Script errors

nerak99

Posted: Tue Dec 11, 2012 3:06 pm
Joined: 11 Dec 2012
Posts: 11
I wanted to use python to plot a 3d surface, I added the add_mesh_3d_function_surface.py Add on.
It is cirrectly placed in my blender folder and yet I get errors when I run it. The error is long but is similar for two addons I tried (I put Mesh gears in as well).
Code:
SyntaxError: EOF while scanning triple-wuoted string literal


It may be the way I got it the code, (saving it from a web page) or my version of blender (2.64)

I have tried on Linux (FC17) and Mac (OSX 10.8.2) and the error is the same.[/code]

IANAE
Reply with quote


nerak99

Posted: Tue Dec 11, 2012 4:24 pm
Joined: 11 Dec 2012
Posts: 11
Progress, well for some reason, the downloaded script has triple string literall ie. ''' above and below the bl_info block which broke the code. Goodness knows how they got there but the error has gone.

However, the menu entry decrsibed does not appear.

Awaiting in hope
Reply with quote


stiv

Posted: Tue Dec 11, 2012 4:50 pm
Joined: 05 Aug 2003
Posts: 3645
Saving scripts copied from a web page is error prone. Try finding a link and doing the Right Click/Save thing.
Reply with quote


nerak99

Posted: Tue Dec 11, 2012 5:05 pm
Joined: 11 Dec 2012
Posts: 11
I think that the 3D function plot has been absorbed into another addon. In fact, the ''' maybe an attempt to stop people loading it.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group