Forum Replies Created

  • Joe Watson

    January 23, 2012 at 3:03 pm in reply to: Export transform.position keyframes to txt file?

    One of my friends came op with a solution around expressions. We could mark all the keyframes and copy paste them to a text file.. haha – and he suggested to use wiggler to set all the inbetween frames. set frequency to the current frameRate and magnitude to 0; this will work for me.

    /joe

  • Joe Watson

    January 23, 2012 at 1:49 pm in reply to: Export transform.position keyframes to txt file?

    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

  • Joe Watson

    January 23, 2012 at 12:33 pm in reply to: Export transform.position keyframes to txt file?

    the ideal thing for me would be to record the position of the object every frame, then its pretty easy for me to sync it up with the video in Unity3D

    /joe

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy