|
|
Well,
Including a .pov file works.
However, opening a file and reading containing rotation vector for joints
involved in a move I could not get it working.
I could not replicate what I reported yeaterday. Today's behaviour makes more
sense, I could not read my walk01 file even for the first time, in the while
loop, it reads the first record, however in the second record it complains.
I could not see anything different between the two records, 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, I even changed file extention, in case I was
confusing POV-RAY by using .pov extention.
"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>
Here is the loop that refuse to read beyond 1st record:
#fopen PosFile "walk01.txt" read
#while (defined( PosFile ))
#read (PosFile, Joint_Name, AVar_Ndx, Rot_Vector )
#declare AVAR[1][AVar_Ndx] = Rot_Vector * IBP;
#debug concat( Joint_Name, ",", str(AVar_Ndx, 2, 0), ",",
vstr( 3, Rot_Vector, ", ", 3, 0), "\n" )
#end
#fclose PosFile
Post a reply to this message
|
|