POV-Ray : Newsgroups : povray.general : Sequence of images but not animation : Re: Sequence of images but not animation Server Time
30 Jul 2024 08:28:14 EDT (-0400)
  Re: Sequence of images but not animation  
From: clipka
Date: 19 Jun 2009 13:00:01
Message: <web.4a3bc393989c16d87080f32a0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> clipka <nomail@nomail> wrote:
> > > mesh00000.inc
> > > mesh00001.inc
> > > mesh00002.inc
>
> >   #local MyFrameNumberStr = substr(str(100000+frame_number,0,0),2,5);
>
>   That's a rather contrived way of doing it. There's a simpler way:
>
> #include concat("mesh", str(frame_number, -5, 0), ".inc")

Revoco!

You're perfectly right. Looks like I browsed the str() documentation too
superficially.

But it's always good to know that in POV-Ray there's typically plenty of ways to
skin a cat :)


Post a reply to this message

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