[Bf-python] Saving image data

karamike karamike at gmx.net
Sun Aug 3 19:37:39 CEST 2014


Hi,

I was trying to use the script render_auto_save.py under 2.7.1, but it
only produces invalid files.

After rendering a file, I tried to program the main steps of that script
in the Blenders text editor:

import bpy
image = bpy.data.images['Render Result']
print(image.has_data)
print(image.render_slot)
print(image.source)
image.save_render('/tmp/test.jpg')

I've added the print commands to see if there is anything at all.

The output:

True
0
VIEWER

The saved image however is again a very short invalid file.

Do I miss something or is this a bug.

 Michael



More information about the Bf-python mailing list