kubabuk
04-01-2006, 12:48 PM
Hi,
I try to store postion of the camera in the text file. At this stage script writes down the values only for the one frame. How can I loop the script to go through my whole timeline and how can I append values to appear each in the new line?
outputFile = createFile "c:\\cameraPosition.txt"
for obj in $ do
(
kuba = obj.pos.y * (-1)
posx = (obj.pos.x as string)
posy = (kuba as string)
posz = (obj.pos.z as string)
string = " " + posx + " " + posz + " " + posy
format string to:outputFile
)
close outputFile
thanks
kuba
I try to store postion of the camera in the text file. At this stage script writes down the values only for the one frame. How can I loop the script to go through my whole timeline and how can I append values to appear each in the new line?
outputFile = createFile "c:\\cameraPosition.txt"
for obj in $ do
(
kuba = obj.pos.y * (-1)
posx = (obj.pos.x as string)
posy = (kuba as string)
posz = (obj.pos.z as string)
string = " " + posx + " " + posz + " " + posy
format string to:outputFile
)
close outputFile
thanks
kuba
