[Bf-python] Problems

Chris Want cwant at ualberta.ca
Wed Jul 30 17:00:09 CEST 2003


This is quite similar to how scheme, perl and python
scripts get registered for use in the menu heirarchy in gimp.
E.g.,

http://imagic.weizmann.ac.il/~dov/gimp/perl-tut.html#SEC4.1

Chris

maci_ray wrote:
>  --- Jacques Guignot <guignot at wanadoo.fr> schrieb: > maci_ray wrote:
> 
>>>How about scripts, that register itself? 
>>
>>Seems interesting, but I did not perfectly understood...  ;-(
>>Could you elaborate on that? (I'm a poor old programmer, don't 
>>understand quickly, and I need accurate explanations...)
> 
> 
> I can't tell you the Python/C calls, nor do I know if that is completely
> possible.
> 
> The idea is to have in a script a section called RegisterMe or a class
> with a method RegisterMe. When called it calls back BPY and registers
> itself to the menu. On every start of blender (preferably) or every open
> of the menu, the RegisterMe Method of the found scripts are searched/called.
> 
> So the script could decid itself where to appear; without any extra 
> description files.
> 
> Maci_Ray.
> 
> 
> __________________________________________________________________
> 
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://www.blender.org/mailman/listinfo/bf-python



-- 
Chris Want
Research Computing Support
Computing & Network Services
University of Alberta
Tel: 1-780-492-9418




More information about the Bf-python mailing list