POV-Ray : Newsgroups : povray.newusers : How to create multiple images in a batch : Re: How to create multiple images in a batch Server Time
29 Jul 2024 14:16:12 EDT (-0400)
  Re: How to create multiple images in a batch  
From: Mike Williams
Date: 10 Sep 2005 15:44:51
Message: <iVtULBAqezIDFwCU@econym.demon.co.uk>
Wasn't it ttread who wrote:
>I guess I will use the animation clock value and test it against a case
>statement to select different strings.

If you've got several parameters to set for each frame, you might
consider storing them in a data file, and reading them like this:

#fopen DATA "data.txt" read
#declare i=0;
#while (i < frame_number)
  #read (DATA, Text_var, Float_var, Vector_var)
  #declare i=i+1;
#end

The data.txt file would be formatted like this:

"Foo",  1.3,  <1.0,2.0,3.0>,
"Bar",  2.2,  <1.1,2.1,3.1>,
"Baz",  3.1,  <1.2,2.2,3.2>,

(Don't forget the commas on the ends of the lines)

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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