[Bf-committers] call functions in 2.5

Campbell Barton ideasman42 at gmail.com
Wed May 11 00:54:45 CEST 2011


2011/5/10 Yuniel Castro González <ycastrog at estudiantes.uci.cu>:
> Hello for all.
> I am trying to translate a blender script, 2.49 to 2.5. The script doesn't have declared any class, single functions and at the end of the same one the following call is made
>
> Register(gui, event, bevent)
>
> where 'gui', 'event' and 'bevent' are three of the functions developed in the script.
> How do I make to call to these functions in 2.5?
> Do I have to make a class and to lock this functions in her?
> Thank you in advance.

Blender 2.5 does not have this, there is no way to make the script run
inside a space.
For scripts that use OpenGL this isnt supported and the script cant be
ported yet, but for typical user interfaces you can register your own
Panel, Menu & Operator classes.

See examples: http://code.blender.org/index.php/2011/02/blenderpython-api-docs/


More information about the Bf-committers mailing list