POV-Ray : Newsgroups : povray.newusers : output file name : Re: output file name Server Time
28 Jul 2024 12:36:24 EDT (-0400)
  Re: output file name  
From: Reactor
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.