[Bf-python] Embedding Blender - XEmbed protocol

Goat Man goatman.py at gmail.com
Tue Jul 20 03:11:49 CEST 2010


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/2d9de81c/attachment.html>


More information about the Bf-python mailing list