Whisperings:Solo Piano Radio
  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: 9 Jul 2008 16:23:22 GMT
  Re: How do you use an external Text file for animation values  
From: audioguytodd
Date: 28 Jan 2008 01:05:00
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" <audioguytodd [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 1991-2004 POV-Team™