POV-Ray : Newsgroups : povray.windows : read problem in Win Vista : Re: read problem in Win Vista Server Time
17 May 2024 19:14:15 EDT (-0400)
  Re: read problem in Win Vista  
From: melo
Date: 21 Feb 2008 01:50:00
Message: <web.47bd1e75cc21e5dd587ef5e20@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
Thank you gentlemen, adding commas surely did the trick.  It was one of those
things that had never occurred to me, neither had I noticed it mentioned in the
online documentation.

> Mike Williams nous apporta ses lumieres en ce 2008/02/16 00:32:
> > Wasn't it melo who wrote:
> >> I have been trying to read from a file containing rotation vectors for
> >> joints
> >> involved in a move, however I could not get it working.
> >>
> >> I set up a while loop to read all the records in the file,  in the while
> >> loop, POV-RAY reads the first record correctly, however in the second
> >> record it
> >> complains about "Expecting a float, string, or a rotation vector, but
> >> finding a
> >> instead."
> >>
> >> I could not see anything different between 1st record it likes and the
> >> 2nd it
> >> bumbs on, I even copied the 1st record twice to see if it will read it
> >> for the
> >> seond time, it had not.
> >>
> >> Again, here is my walk01.txt file:
> >>
> >> "L_Hip_Ind",3,<-40,0,0>
> >> "L_Knee_Ind",4,<0,0,0>
> >> "L_Ankle_Ind",5,<50,0,0>
> >> "R_Hip_Ind",13,<45, 0, 0>
> >> "R_Knee_Ind",14,<5, 0, 0>
> >> "L_Elbow_Ind",10,<2, 0, 0>
> >> "R_Acromioclav_Ind",18,<0, 10, 0>
> >> "L_Acromioclav_Ind",8,<0, -10, 0>
> >> "R_Acromioclav_Ind",18,<-40, 0, 20>
> >> "R_Elbow_Ind",20,<-90, 0, 0>
> >> "R_Ball_Ind",17,<-60, 0, 0>
> >> "Lower_Back_Ind",2,<-0,0,0>
> >> "HumanoidRoot_Ind",0,<20, 0, 0>
> >
> > POVRay doesn't see line breaks as being field separators. You need to
> > have commas at the end of each line except the last.
> >
> You can even have an extra, and useless, coma after the last item.
>
> --
> Alain
> -------------------------------------------------
> The tree of liberty must be refreshed from time to time with the blood of
> patriots and tyrants.
> Thomas Jefferson


Post a reply to this message

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