Hi all, I’m working on putting pieces of scripts together to get a more integrated Appleseed exporter/rendering interface (just for fun? Just for my own personal use? I dunno).
Rendering can be done either via command line or via the appleseed.studio GUI. Either way, I’d like to be able to update the image editor with the rendered image after rendering finishes. Hey, even WHILE it’s rendering, that would be great.
Can someone tell me how that’s done? Is there a particular function in bpy.types.RenderEngine that can be called to assist with that?
Here is a code section from the 3Delight exporter.
result = engine.begin_result(0, 0, engine.rpass.resolution, engine.rpass.resolution)
lay = result.layers
# possible the image wont load early on.
layers has a load_from_file method otherwise you will have to construct an array of pixels.