Show render buffer

Together with a friend ( not Mr. Hyde! :evilgrin: ), I create a render addon. The render process startet by push a button in panel. On F12, Blender shows automatically the render buffer, so you can see, how far advanced the actual render process is. But not by pushing our render button.

So how can I solve it with python code? API says, bpy.ops.render.view_show() should work. But it does not! (inner modal). So what code is needed, to show render buffer/view instantly, if someone pushes the render button in panel? We need exactly the same effect like pressing F11 (without hiding). Anyone knows?

BTW: Is ist possible, to capture F12 to start our operator/modal? How?

It’s not the right operator context you run it in, use

bpy.ops.render.render(‘INVOKE_DEFAULT’)

Is ist possible, to capture F12

Basically yes, but don’t think you actually need it:
http://www.blender.org/documentation/blender_python_api_2_72_release/info_tutorial_addon.html#keymap

Thank you. It was helpful. :slight_smile: