Rediculous Python error

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

RipSting
Posts: 17
Joined: Wed Nov 27, 2002 1:58 am
Location: Oregon, USA
Contact:

Rediculous Python error

Postby RipSting » Thu Jan 16, 2003 4:16 am

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?

RipSting
Posts: 17
Joined: Wed Nov 27, 2002 1:58 am
Location: Oregon, USA
Contact:

Postby RipSting » Thu Jan 16, 2003 10:28 pm

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?

xand
Posts: 86
Joined: Wed Oct 16, 2002 9:46 am

Postby xand » Fri Jan 17, 2003 12:21 pm

you could use a 'try except' statement upon 'get.selected'. look at part 8 of the python tutorail 'errors and exceptions'.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 0 guests