I think it would something like this…
I dont know the syntax at all or if I need other references, to get the position. Or where I need to run the script, if it its on the layer or in the transform.position parameter? – If it looked like this does the script run every frame of the animation or do i need to loop thru all the frames?
var position = transform.position;
file = fopen("path/to/file.txt", "a");
if(file != null){
var stringWithPostion = position.toString();
fwrite(file, stringWithPostion);
fclose(file);
}
/joe