Is it possible to add a 'tick box' to the render window (the F12 window)?

Ive been searching but all results show how to add something to the render panel, nothing about adding to the render ‘window’ which we see when hitting F12.

I would like to add a Bool Box to the top main menu bar or the side panel, anywhere really, just want something visible in the render window which i can toggle.

Im new to blender along with python, any info will help and if you explain with an example a 4 year old can understand that would be better yet !

thanks…

_

You’ve got me curious. What would this tick-box be used for?

Email alert when render finished.

Working on alittle addon to send off an email when a render is finished. The core of the script is complete, working on the preference now to store email info (smtp, port, username, pass, send to) and also to enable and dis-able email notifactions. Thought it would be convenient if there was a toggle right in the render window to atleast turn script off incase someone didnt want it to run and forgot or didnt want to hit the preference page.

Cool idea, Joe.

Wouldn’t it be easier to put it in Render Properties or Output Properties, though? Adding an extra panel to one of the properties windows is relatively straightforward if memory serves.

Thanks.
That was a thought. Im thinking in the main preference, email info (smtp, port, username, pass, send to) since it only gets set once and no need to take up room else where, then some where with easy access have the enable. While piecing this together i came across some tuts about placing buttons an panels and like you said, it was straightforward… Guess i just like the idea of having the option right in front after hitting F12 to make any last min change.

I hear ya. There are lots of places in Blender where that would be an advantage. Digging through several property panels and windows and menus to set up all the bits and bobs having to do with a single thing gets old really fast.

Just a follow up in case this comes up in someones search results:
I got the following to work, it will place a Panel in the Tools of the Image Editor which is the same “window” that appears during a f12 render. Its a small panel, but works for what i want. As said, this is in the Image Editor so it will also be shown in “UV/Image Editor, View and edit images and UV Maps”.

class renderAlert_Panel(bpy.types.Panel):
    bl_idname = "OBJECT_PT_hello_world25"
    bl_label = "Render Alert"
    bl_space_type = 'IMAGE_EDITOR' # here
    bl_region_type = 'TOOLS' # and here

a link for reference: https://docs.blender.org/api/current/bpy.types.Panel.html?highlight=bl_space_type#bpy.types.Panel.bl_space_type

_

1 Like