POV-Ray : Newsgroups : povray.general : Exit when done : Re: Exit when done Server Time
31 Jul 2024 08:24:30 EDT (-0400)
  Re: Exit when done  
From: Alain
Date: 27 Jul 2007 14:32:51
Message: <46aa3a53$1@news.povray.org>
Manuel Mata nous apporta ses lumieres en ce 2007/07/27 07:27:
> "Tim Attwood" <tim### [at] comcastnet> wrote:
>> You should be able to set up POV to /EXIT
>>
>> However, in DOS you can kill POV with
>> taskkill /f /im pvengine.exe /t
>> I think in Java you need to spawn a runtime
>> thread to make a system call, then monitor
>> it for completion, and kill the thread when it's
>> done.
> 
> Right in Java i do something like:
> 
> Runtime r = Runtime.getRuntime() // gets the current runtime
> Process p = r.exec("pvengine -isample.pov -osample.png"); // Execute pov ray
> and return the associated process
> p.waitFor(); // Waits the current thread until povray finished
> 
> But Povray renders the image and is still open. So the thread is still
> stopped at p.waitFor() When i close the window manually the program
> continues.
> 
> I think the best is to set up the "Exit when done" option but still didnt
> had time to try it.
> 
> 
> 
> 
In Windows:
Start POV-Ray.
In the menu, select "Renderer".
Go down to the "On Completion..." item.
In the sub-menu, select "Exit POV-Ray for Windows". It default to "Do nothing".
Exit POV-Ray.
You're done.

-- 
Alain
-------------------------------------------------
Either write something worth reading or do something worth writing.
Benjamin Franklin


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.