[Bf-committers] Re: listener object

Campbell Barton cbarton at metavr.com
Fri May 6 16:00:28 CEST 2005


He means in Blender (not game engine)
not to speak for him, but I think callback would be a good/better 
solution as long as there workable- (Callback from sockets would be nice).
- Cam

Ton Roosendaal wrote:
> Hi,
> 
> It's also important to define whether you want it for Blender (i.e. the  
> UI) or for running games?
> 
> I don't think an "Always scrptlink" is the way to go... we should keep  
> things fully event based in Blender's UI.
> Would it be possible for Python to add callbacks instead? Meaning, it  
> assigns to an external program the means to insert events in the main  
> queue, which is then being handled by another script. Could also be a  
> means to plugin input devices.
> 
> -Ton-
> 
> 
> On 6 May, 2005, at 13:21, Martin DeMello wrote:
> 
>> On 5/6/05, Martin DeMello <martindemello at gmail.com> wrote:
>>
>>> I'd like to add a "listener" object to blender, to allow a script to
>>> be triggered by an external program writing to a socket. (Not
>>> necessarily proposing this be added to blender proper, but it would be
>>> very useful for my own copy.) Is this an intrinsically dangerous idea?
>>> (i.e. could it cause instability or crashes in blender?) If not, how
>>> would I go about doing it? (i.e., where in the code should I be
>>> looking to add something like this?)
>>
>>
>> Also, antont suggested on IRC that an 'always' scriptlink that
>> activated once every timer tick would be another nice way to
>> accomplish this. The triggered python script could then poll the
>> socket.
>>
>> martin
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at projects.blender.org
>> http://projects.blender.org/mailman/listinfo/bf-committers
>>
>>
> ------------------------------------------------------------------------ --
> Ton Roosendaal  Blender Foundation ton at blender.org  http://www.blender.org
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
> 
> 

-- 
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-committers mailing list