POV-Ray : Newsgroups : povray.newusers : Shell out from .pov? : Re: Shell out from .pov? Server Time
28 Jul 2024 14:29:23 EDT (-0400)
  Re: Shell out from .pov?  
From: jan dvorak
Date: 4 Oct 2008 15:11:23
Message: <48e7bfdb@news.povray.org>
Mathuin napsal(a):
> I have a number of small .pov files representing collections of objects.  I just
> realized that I cannot rely upon the name of the file to represent the order --
> but I can rely on the *timestamp* of the file.
> 
> Listing the files is easy -- "dir /b /od *.pov" for Windows, "ls -rt *.pov" for
> Unix.  The real question is how do I get that information into POV-Ray elegantly
> as a list of strings over which I can iterate?  Alternatively, I will have to
> hand-build a list in my master .pov file and that just seems so ugly.
> 
> Thank you so much for all your help so far!
> 
> 
> 
Hello,
You can generate the list externally (it must be comma separated!) and 
then use file reading routines to parse it. See #fopen and #read.


Post a reply to this message

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