5
$\begingroup$

So I'm currently using Java's ProcessBuilder to run Blender Python scripts for rendering in the background and that's working fine. However, I would also like to abort Blender at any time, and unless if I'm mistaken, killing the blender.exe processes would be the best method of doing this.

So I tried using the destroy() method on the process that runs Blender, only to find that Blender actually starts two processes. Using the destroy() method only kills one of the two processes (and not the one that's doing the actual rendering). Does anyone know of a good workaround or another method of implementing a render abort? Thanks!

$\endgroup$
  • $\begingroup$ post your java code or follow the links here (your question is not clearly Blender related and might be better placed at SO): stackoverflow.com/questions/269494/… $\endgroup$ – stacker Aug 21 '15 at 19:04
  • $\begingroup$ If you are on Windows, you could taskkill /f /t /im "blender.exe" (/t means kill tree, so also child processes). There are probably similar solutions for OSX and Linux, see stackoverflow.com/questions/6356340/… for instance. $\endgroup$ – CodeManX Aug 24 '15 at 19:51
1
$\begingroup$

On Windows, you can kill Blender easily by opening the task manager,then selecting "end process".

You would not need to use python.

Here's a pic:

enter image description here

You can access task manager by pressing CTRL+ALT+DELETE.

On Mac, you can do just about the same thing, just this is done in the activity monitor Instead.

|improve this answer|||||
$\endgroup$
  • 1
    $\begingroup$ killall blender on linux $\endgroup$ – batFINGER Feb 9 at 11:38
  • $\begingroup$ Thanks. I don't use Linux. $\endgroup$ – Nate_Sycro27 Feb 9 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.