[Bf-python] scriptlinks

Martin DeMello martindemello at gmail.com
Thu May 26 08:01:45 CEST 2005


On 5/25/05, Toni Alatalo <antont at kyperjokki.fi> wrote:
> On Wed, 25 May 2005, Martin DeMello wrote:
> 
> > So I've got a SCREEN_HANDLER_NETWORK up and running, which calls a C
> > function every time data is written to a socket. I'm stuck on the next
> 
> cool
> 
> > step, though - how do I attach scriptlinks (or, indeed, any sort of
> > python callback) to this? Even the simplest possible thing I could
> 
> have you looked at how the other scriptlink implementations do that?

I tried, but I got lost in the code :( for instance PyObject
*EXPP_addScriptLink(ScriptLink *slink, PyObject *args, int is_scene)
looked like what I needed, but there's no instance of calling it from
C code other than to pass through arguments in the various api2.2
functions.

martin



More information about the Bf-python mailing list