Pass a render result as a numpy array to bpy.types.RenderEngine

I hit the same issue and worked around it by saving the pixels to an EXR file and loading that with

result.layers[0].load_from_file(FBFILE)

Overall (in my case) it’s faster.

I think there is a related post on this forum with a patch to improve the time taken to pass data from a numpy array. Edit: it’s this thread.

2 Likes