|
|
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.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|