POV-Ray : Newsgroups : povray.general : Declare output file name within the code? : Re: Declare output file name within the code? Server Time
31 Jul 2024 12:17:41 EDT (-0400)
  Re: Declare output file name within the code?  
From: Chambers
Date: 24 Mar 2007 16:47:25
Message: <46059c6d@news.povray.org>
Erhard Ducke wrote:
> Chambers wrote:
>> I haven't tested it, but it might be possible to write to the INI file
>> during an animation, changing the filename for the subsequent frame.
>>
>> ..Chambers
> 
> Yes, but not for the current frame...

The problem with changing the name for the current frame is that the 
output filename is completely independant of the scene.  If I want to 
call it "render.png", "mypic.png" or "spaceballsofdeath.png" I can do 
that, no matter what the name of the SDL file is.

Can you be more specific about what you need this for?  Perhaps there's 
another way to achieve the same effect?

> Is it possible to run shell commandos from within POV?

Sort of.  You can't run them DURING the trace, but you can have them run 
when POV completes.  See section 3.1.2.6 in the docs.

> So I could rename the image file after finishing the render...

That might be the easiest way.  I think there's a way to get the current 
filename, which would help automate the process, but I've never used it 
so I'm not certain.

...Chambers


Post a reply to this message

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