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 11:41:37 EDT (-0400)
  Re: How do you use an external Text file for animation values  
From: audioguytodd
Date: 27 Jan 2008 20:05:00
Message: <web.479d29fa6e870b0f230bdc7b0@news.povray.org>
Nope that's not it, but I see what you mean.

Is there any way to read each line in the text file then move on to the next
frame and read the next line?? Well, I know there is- I just can't remember it.

I want to read each comma separated variable as in the line. Right now, there
are three (a vector):

#fopen MyFile "c:\filename.txt" read
#while (defined(MyFile))
#read (MyFile, Var1, Var2, Var3 )
#end

I thought that is what I was doing above in line 3. Read File, Variable1, etc...

But it doesn't seem to work right.

BTW, I am using the Beta 3.7 (for the SMP which is very nice on my new
Core2Quad!)

audioguytodd



"StephenS" <nomail@nomail> wrote:
> "audioguytodd" <aud### [at] bellsouthnet> wrote:
> ....
> > The text file Filename just has three comma separated variables:
> >
> > 0, 0, 0
> > 0, 0, 0
> > 0, 0, 0
> > -12, -18, 0
> >
> ....
> Your third and fourth variable is separated by a 'new line', not a comma.
> Try:
> 0, 0, 0,
> 0, 0, 0,
> 0, 0, 0,
> -12, -18, 0
>
> StephenS


Post a reply to this message

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