POV-Ray : Newsgroups : povray.general : Custom output filenames : Custom output filenames Server Time
15 Nov 2025 05:37:52 EST (-0500)
  Custom output filenames  
From: stevenvh
Date: 14 Nov 2025 11:20:00
Message: <web.691755f9d7e726a667a60f225b085d4@news.povray.org>
I have a scene for which I want a number of different renderings (different
camera and light locations). I run a .ini file to render the variations, which
get numbered 0 to 49. In my .pov file I have the following code:

  #declare Rnd1 = seed(frame_number); // camera
  #declare Rnd2 = seed(frame_number); // light

From these 50 I select a number to render at high resolution, and I run a
different .ini file for these. In my .pov file I write the following code, which
maps the sequence numbers to my own:

  #declare frames = array[5] {2, 3, 5, 8, 13} // selected for high-res rendering
  #declare frame_nr = frames[frame_number];
  #declare Rnd1 = seed(frame_nr); // camera
  #declare Rnd2 = seed(frame_nr); // light

The result is a series of output files with filename numbers in sequence
(defined by the .ini file)

  outfile_00
  outfile_01
  outfile_02
  outfile_03
  outfile_04

Is there a way to have custom numbering for the output files? Like

  outfile_02
  outfile_03
  outfile_05
  outfile_08
  outfile_13

numbers I would get from the array in my .pov file, which would mean that the
output filename should be defined in the .pov file.


Post a reply to this message

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