I was going to use the auto_render_save add-on. However it only saved white PNG images,
Then I tried to the same “manually” via “Run Script” using the short script below (after rendering a small image).
However, it did not work either (also white PNG images).
import bpy
scene = bpy.data.scenes[0]
image = bpy.data.images['Render Result']
print(image.has_data)
print(image.render_slot)
print(image.source)
image.save_render(filepath = '/tmp/test.png', scene = scene)
Terminal output:
True
0
VIEWER
I did some permutations, e.g. omitting the “scene” value, also without success.
Switching the slot will change the number.
Replacing save_render by image.save() reports:
RuntimeError: Error: Image ‘Render Result’ does not have any image data
What am I missing?
RuntimeError: Error: Image ‘Render Result’ does not have any image data