Hi all,
Well I’ve created a script that’s executed for every frame (Always sensor with Python script controller). Within the script I would like to get the bytes from the current frame instead of saving the current frame on the local disk.
I know that there are many ways of saving the current frame (on the local disk) such as
context=Scene.GetCurrent().getRenderingContext()
context.enableRGBAColor()
context.setRenderPath(’//image.bmp’)
context.renderAnim()
or with command line
blender -b file.blend -o //file -F BMP -x 1 -f 1
But actually I need at the end of script executed on every frame to have an array of bytes( or string ) (4 bytes for every pixel because of RGBA) instead of saving the same picture as BMP on the local drive than open it again and reading the bytes.
Thanks in advance
Niksa