3
$\begingroup$

I've got a script that automatically renders and saves the render, but I'd also like to have Blender quit when the render and save is completed. Since I will be running renders overnight, I'd prefer to have it shut off when finished.

I've checked out the alarm_and_shutdown script by Metelskiy and Nikitin, but it's for windows.

Any ideas?

Turns out that the command is bpy.ops.wm.quit_blender()

$\endgroup$
3
  • 1
    $\begingroup$ Please don't edit the answer into your question. If you found a solution we encourage to post it as a self answer below. As a bonus you might get some reputation points $\endgroup$ Dec 6, 2018 at 4:21
  • 2
    $\begingroup$ Recommend looking into running from the command line. docs.blender.org/manual/en/latest/render/workflows/… $\endgroup$
    – batFINGER
    Dec 6, 2018 at 14:19
  • 1
    $\begingroup$ Last time I posted as an answer I got reprimanded for not editing the post. Confused now. $\endgroup$
    – gwfami
    Dec 7, 2018 at 5:15

1 Answer 1

2
$\begingroup$

Turns out that the command is bpy.ops.wm.quit_blender()

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .