exiting blender....

When I do


in my script (glued to frame change) during animation, it seems not to do anything on my Linux box using 2.27. Is there any other command I could use to exit blender completely (apart from starting a shell command ‘killall -9 blender’) from inside a script?

import sys

That seems to be doing the trick! Thanks!

import os

this works too, but it’s probably not what you want :wink:


In my experience that doesn’t work. It causes the script to terminate, but it doesn’t close blender. (sys.exit only closes blender in a real-time script)

Keith. 8)

What system?