|
![](/i/fill.gif) |
In Java it should be easy. Something like this:
public static void main(String[] args)
{
int firstFrame = ???; // set first
int lastFrame = ???; // and last frame here
String pathToYourPOV = ???; // set your path here
String yourPOVArguments = ???; // set your render-args here
String yourPOVFile = ???; // set the name of the scenefile here,
for (int i = firstFrame; i <= lastFrame; i++) {
String povArgString = pathToYourPOV +
"pvengine.exe +I" +
yourPOVFile + i + ".pov" +
yourPOVArguments;
Process pov = Runtime.getRuntime().exec(povArgString);
try {
pov.waitFor();
}
catch (Exception) {
System.out.println("Something went wrong!");
break;
}
}
}
The scenefile name should be the name without the frame-number and the
".pov" extension, of course.
You should also choose render arguments that make POV-Ray close itself after
rendering, otherwise you will have to close it manually or "waitFor()" will
wait forever ;-)
Greetings,
Johannes.
Ron H. wrote in message <36f710c5.0@news.povray.org>...
>I'm sorry, I forgot to do that.
>
>I'm using WinNT4.0, and I'd like to perform this repetitive batch loop
>either in a java program or perhaps even in POVray's own language using
>POVray itself.
>
>Is this possible?
>
>Ron
Post a reply to this message
|
![](/i/fill.gif) |