POV-Ray : Newsgroups : povray.animations : How do you use an external Text file for animation values : Re: How do you use an external Text file for animation values Server Time
19 May 2024 10:51:11 EDT (-0400)
  Re: How do you use an external Text file for animation values  
From: audioguytodd
Date: 30 Jan 2008 00:25:00
Message: <web.47a009ca6e870b0f230bdc7b0@news.povray.org>
Now that I have the loop-the real fun can begin!!
And for any other noobs out there (using the Windows version), if you are tying
to read or write from an external file- check out the Script I/O Restrictions
in the Documentation.

Thanks again,

audioguytodd

Leroy <lrw### [at] joplincom> wrote:
> audioguytodd wrote:
> > Thanks, it works fine now. However, I could not use count as a variable for some
> > reason.Reseved keyword maybe??? Anyhow- this works. My variable in the text file
> > is <12,23,04>. Then it is read as a vector.
> >
> > #fopen MyFile "c:\filename.txt" read
> > #declare countth =0;
> >   #while (defined(MyFile)&(countth<=frame_number))
> >   #read (MyFile, Var1, )
> >   #declare countth=countth+1;
> >   #end
> >
> Cool! Hope hope you have fun animating.
> Sorry for the 'count' word, I used it for clearity in the example.
> I just didn't think. I usually use 'Cnt' as my base counter.


Post a reply to this message

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