POV-Ray : Newsgroups : povray.newusers : output file name Server Time
24 Nov 2024 09:03:01 EST (-0500)
  output file name (Message 1 to 3 of 3)  
From: Christoph
Subject: output file name
Date: 24 Apr 2009 04:40:01
Message: <web.49f17a67d0e72488191945c80@news.povray.org>
hello everybody!

i was wondering if it's possible to set the output filename from inside a povray
script. i am trying to render stereo pairs of images, odd frame numbers get the
left camera position, even frames the right one. that works, but it would be
even better if i could set the image names too ... can anyone give me a hint?

thanks
christoph


Post a reply to this message

From: Christian Froeschlin
Subject: Re: output file name
Date: 24 Apr 2009 17:19:52
Message: <49f22cf8$1@news.povray.org>
Christoph wrote:

> i was wondering if it's possible to set the output filename from
> inside a povray script.

That's not possible from within SDL. What you *can* do is start
povray from command line and provide the file name, and you can
also set a define such as /D=CAMERA=[0/1] to control whether
the script should render the left or right camera.


Post a reply to this message

From: Reactor
Subject: Re: output file name
Date: 24 Apr 2009 17:25:00
Message: <web.49f22d9d36bc8d34e126a2d90@news.povray.org>
"Christoph" <nomail@nomail> wrote:
> hello everybody!
>
> i was wondering if it's possible to set the output filename from inside a povray
> script. i am trying to render stereo pairs of images, odd frame numbers get the
> left camera position, even frames the right one. that works, but it would be
> even better if i could set the image names too ... can anyone give me a hint?
>
> thanks
> christoph

It isn't possible to do so directly, as the filename is either specified via
command line or ini file.  It could be done indirectly via external script or a
pov script that generates a series of ini files, but both seem kind of kludgey
to me.  Out of curiosity, though, why couldn't you just have two ini files with
different variable values and render the same scene?

As in:
Input_File_Name="stereo scene.pov"
Output_File_Name="ss_left_eye.pov" ; change output file name to right
Declare=sceneVariable=0            ; and sceneVariable to 1 for right eye


Or something similar.


-Reactor


Post a reply to this message

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