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:21:31 EDT (-0400)
  Re: How do you use an external Text file for animation values  
From: Leroy
Date: 29 Jan 2008 23:36:05
Message: <479FFE02.9070906@joplin.com>
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.