[Bf-committers] blender25 and ctypes-pygtk

Hart's Antler bhartsho at yahoo.com
Thu Jan 6 11:02:50 CET 2011


I managed to get GTK to work pretty well with blender25 using ctypes.  The old PyGTK bindings didn't work that well with blender2.4x because the GTK mainloop did not release the GIL, and there was no ideal way to iterate the main loop from blender.  Thankfully ctypes releases the GIL, so threading works!  Not sure if updating blender data from a GTK thread can cause a crash, but with this simple addon that changes the scale of the selected object everything is ok so far.more details and source code here:http://pyppet.blogspot.com/2011/01/ctypes-pygtk-in-blender25.html
-brett



More information about the Bf-committers mailing list