[Bf-committers] ctypes wrappers for blender

Hart's Antler bhartsho at yahoo.com
Mon Apr 11 07:18:38 CEST 2011


Hi BlenderDevs,

http://rpythonic.googlecode.com/files/libblender-ctypes-test2.tar.bz2

Above contains a ctypes wrapper around a large part of the blender C API.  Also included is a blender.h header file that the wrapper is generated from.  I wasn't sure if there was some more headers that should be included in there, so far its just a starting point.  The archive includes libblender.so compiled for 32bit ubuntu.  The ctypes wrapper (blender.py) can be used from within blender by having ctypes load an empty string, telling ctypes to load from the current process, in case your not interesting in using libblender.so

-brett


More information about the Bf-committers mailing list