I know I can call bpy.ops.render.opengl()
and that will create the render, but what I want to do is to create and then view the render, just like what happens when you use the View > Viewport Render Image menu item. Is there a way to do this?
So, to ask another way, how can I call the render window (F11) via python? F11 Hides or shows the render window.
bpy.ops.render.render(use_viewport=True)
for an actual render andbpy.ops.render.opengl()
for viewport render. $\endgroup$