|
![](/i/fill.gif) |
Wasn't it Trevor G Quayle who wrote:
>"James" <bat### [at] hotmail com> wrote:
>> I have a series of JPEG files I exported from Adobe Premiere and I want to
>> use these in an animation as images on a screen within the animation. The
>> line I use to successfully put one image up is
>>
>> #box { <0.0, 0.0, -screenthi> <screenwid, screenhei, screenthi> finish {
>> ambient 1 diffuse 0.9 } pigment { image_map { jpeg "filename.jpg" once
>> interpolate 2.0 } scale <screenwid, screenhei, screenthi> } translate
>> <-screenwid/2, 0, 0>}
>>
>> the filenames are from train0001.jpg to train7046.jpg so I want to use the
>> clock to change the input file so that the code will look at the right
>> frame. I tried using a concatenation script however parenthesis around the
>> filename didn't allow that. How do I achieve this result?
>
>
>instead of using concat within the filename:
>image_map { jpeg concat("filename", str(filenum,0,0),".jpg")}
>
>try predeclaring it:
>
>#declare filnam = concat("filename", str(filenum,0,0),".jpg");
>image_map {jpeg filam}
You may need to use str(filenum,-4,0) to get the leading zeroes in
"train0001.jpg".
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |