POV-Ray : Newsgroups : povray.general : string problem : Re: string problem Server Time
31 Jul 2024 00:33:28 EDT (-0400)
  Re: string problem  
From: Nicolas Alvarez
Date: 1 Mar 2008 12:40:06
Message: <47c994f6@news.povray.org>
Dennis Miller escribió:
> I am trying to load a long sequence of TGA files into this image map:
> image_map { tga concat("D:\\sketches\\follow", str(clock*600,-4,0), ".tga")
> 
> in the folder Sketches folder on my D drive there are 1800 files starting 
> with
> follow0000.tga
> to
> follow1800.tga
> 
> Can someone see a problem with the string here? I want to read in only the 
> first 600 while the clock moves from 0.1 to 1.
> 
> and I am getting a Parse Error that says: Cannot open TGA image.
> thanks much for any help.

This won't solve the problem, but will help you find out why it's not 
working:

#declare ImageName = concat("D:\\sketches\\follow", str(clock*600,-4,0), 
".tga");
#debug concat("Attempting to load ", ImageName, "\n")

image_map {
    tga ImageName
    //...
}


Post a reply to this message

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