On 4 mei 2010, at 08:13, Campbell wrote:

> class Image(bpy_types.ID):
>    def buffer_get(self, type="byte", frame=None):
>        return None # replace with ctypes/buffer stuff.
> 
> After this you can do..
>  buffer = bpy.data.images["foo"].buffer_get()

I tried this, by adding those lines in the bpy_types.py module within
the blender2.5a2 on OSX, but 'buffer_get' remained an unknown attribute,
also 'as_pointer' was unknown.
and when it works is it possible to find the needed info for ctypes through
introspection, or do you need to search for the structure layouts in de sources?

~Theo


_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to