POV-Ray : Newsgroups : povray.general : Atmosperic media and filename questions : Re: Atmosperic media and filename questions Server Time
1 Aug 2024 14:34:26 EDT (-0400)
  Re: Atmosperic media and filename questions  
From: Mike Williams
Date: 23 Aug 2005 07:31:06
Message: <jXBbKFAyjwCDFwD7@econym.demon.co.uk>
Wasn't it Chrisblob who wrote:
>
>Next question, I have thousands of png images in a directory to use as the
>individual frames for my projected movie. They are image0001.png,
>image0002.png,
>image0003.png etc... What syntax do I need to load the filename
>imagennnn.png,
>where nnnn is the frame number?

#declare FILE = concat("image",  str(frame_number, -4, 0),  ".png");
... 
  pigment {image_map {png FILE}}

When the second parameter (minimum output length) of str() is negative,
the result is padded with leading zeroes instead of spaces.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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