Previous Thread  Next Thread

chat icon Rediculous Python error

RipSting

Posted: Thu Jan 16, 2003 4:16 am
Joined: 27 Nov 2002
Posts: 17
I, for one, am tired of having Blender crash when I execute the Blender.Object.GetSelected() command when nothing has focus. The error forces Blender to shut down (In windows at least). This function is necessary for my Fiber Generator to run.

Shouldn't it just be a matter of inserting a small 1 or 2 line error handler in that section of code?


I know there are developments on an entirely new Blender API, but what about a temporary fix until it's released that will keep people happy?
Reply with quote


RipSting

Posted: Thu Jan 16, 2003 10:28 pm
Joined: 27 Nov 2002
Posts: 17
This problem doesn't happen in Publisher, only Creator. But my script runs 10% faster in Creator... I tried downloading the compilable version of the C++ code for Blender Creator, but VC++ 6.0 can't find the makefiles?
Reply with quote


xand

Posted: Fri Jan 17, 2003 12:21 pm
Joined: 16 Oct 2002
Posts: 80
you could use a 'try except' statement upon 'get.selected'. look at part 8 of the python tutorail 'errors and exceptions'.
Reply with quote


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