[Bf-python] Embedding Blender - XEmbed protocol

Stuart Axon stuaxo2 at yahoo.com
Tue Jul 20 20:57:01 CEST 2010


Something like celery might be a way of exporting the api to another python 
server.

 S++


>
>From: Goat Man <goatman.py at gmail.com>
>To: Blender Foundation Python list <bf-python at blender.org>
>Sent: Tue, July 20, 2010 2:11:49 AM
>Subject: [Bf-python] Embedding Blender - XEmbed protocol
>
>I didn't realize Blender can be embedded in a PyGTK window using gtk.Socket.
>Its an ugly hack to use the command line "xwininfo" to get the xid, it would be 
>better if Blender printed on the command line its windowID or was available in 
>the python API.
>This demo works most of the time, if the window loses focus then mouse clicking 
>stops working, but keyboard and the mouse wheel seems to always work.
>
>
>http://pastebin.com/vYtJmmAC
>
>
>To make this useful we need a way to run a python loop in blender that talks on 
>a socket or pipe to the parent process running pygtk.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20100720/e9d5e171/attachment.html>


More information about the Bf-python mailing list