'Render' Gizmo Python question



I am no star in scripting, so this might be a simple question, but one I can’t solve even after searching the web for an answer.

I am making a Gizmo for our pipeline that manages our Nuke renders. Within the Gizmo are 3 write nodes that I want to execute (if enabled in the gizmo) when I hit the render button. But I don’t know how to script that… It is basically ‘Render > Render All (F5)’ or an if/else statement. But it is beyond my knowledge at this point.

See attached image for further clarification.

Anyone who can help me with this? Thanks in advance!


This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.