|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |