[Bf-python] error('') -> python exception

Campbell Barton cbarton at metavr.com
Sat Apr 30 18:14:55 CEST 2005


Hi All, theres heaps of code at the moment that is not wrapped into the 
python api because it relys on ui functions.
One of the main functions is error()

Its used all the time, so why not make a check inside the error 
function, that asks weather a python script is calling it, and if so, 
then return a python exceprion rather then an error.
It would save in work for developers wrapping existing Blender functions 
as well as new ones.

There is still the problem of menu's but this fixes many small functions 
still. menus probably cant be accsessed in python, since they need to be 
able to change without scripts being made incompatible.
- Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list