Can you stop rendering in the "Blender Render" window with a mouse?

In this pop-up window, other than pressing the ESC key, can you stop the rendering and see the incomplete result with a mouse? I mean, within the pop-up window, not pressing the on the status bar of the main window, because clicking that makes the pop-up window background and I have to bring it back to foreground again.

If not, did you ever wish there were such a button on the pop-up window? There is a lot of empty area on the toolbar, I don’t see what the harm is to have a button that does the same thing as ESC there. The existing button stops but also closes the rendering, so I cannot use it. The reason I stop the rendering is, I often render the scene to see what it is like, and full rendering takes too much time, and if it has already rendered the part I wanted to see, there is no need to keep rendering, and I want to examine the incomplete result.


PS: I have created an add-on for that. It adds a button and clicking the button is the same as pressing the ESC. I wanted a clean way to cancel the rendering, but the only method for cancelling the rendering seems to be bpy.ops.render.view_cancel(), and calling that closes the render window, so… I had to resort to the ESC key method as in this StackOverflow answer.

image
AddStopButton.py (1.2 KB)

You cannot, because that pop-up window is just an Image Editor. That said, because it’s an Image Editor, even after cancelling you can still open an Image Editor and pick the ‘Render Result’ from the dropdown and see the incomplete result.
You can also go to User Preferences, Interface, Editors/Temporary Windows and adjust where the ‘Render In’ result appears, so you could make it show in an already-open Image Editor and not a pop-up window.

You can reopen it with F11.

First, you are not forced to render into a new Window.
Go into menu Edit -> Preferences.
In Preferences window -> Interface category -> Editors panel -> Temporary Windows subpanel,
you can set Render In New Window to Keep User Interface or Image Editor or Fullscreen.
That way, render will be displayed in Main Window and X button will be available in status bar.

Second, you are not forced to make a full render. In 3D Viewport, in Camera view, you can define a Render Region by menu View -> View Regions -> Render Region…
You can also define a Render Region in any other point of view to use it for Rendered Display mode.
But region defined from any angle will not be retrieved when jumping to Camera View.
And region defined from Camera angle will not be retrieved when jumping to any other viewpoint.

1 Like

I don’t share the fascination with hotkeys, esp. given that there are three built-in keymaps now, but yes indeed, there’s also a way to recall it.

Not sure if this would help in your case …but how about using “Render Area…Ctrl+B to select an area…and Ctrl+Alt+B to remove…”
Saves alot of time and you can keep it…

Render Area solves a different problem.
Often you do not want render areas because you want to start rendering to see if the whole image is good. Then when the render has reached the first problem you stop it and remove the problem.
Then you do the same thing again. And again. And again.

Just what I was looking for. The “keep user interface” seems to be pretty hidden in 2.83.

Yes. In 2.79, it was inevitable in Render panel of Render Properties.
In 2.80, it moved to Render menu of Topbar.
Then, it moved from Render menu to Temporary Windows subpanel, closed by default, in 2.81.

Having a button would be great.

1 Like

you can always use the ESC key
but in latest built it is very sluggish
eventually it will stop the render

happy bl

I will investigate if I could write a plugin script to add a button to stop rendering there. If I find a way, I will post that here.

Created an add-on for that. See the original post. I have appended the add-on there. Probably only works on Windows, because it seems to be calling windll.

1 Like

It works so good. Plus solving your own problem. You are a master.

Seems like there was a problem. The button also showed up in other places like UV Editing or Texture Paint. Updated the script to fix that.

1 Like

Yes, a simple button would be great! Maybe it will be considered in a future release. The sooner the better. It gets old having to go into preferences every single time to choose “new window”, “keep user interface”, “full window”, etc. Also, some hot keys to go along with the new buttons. :slight_smile: