Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Append a text file with expressions.

  • Append a text file with expressions.

    Posted by George Felix on July 6, 2017 at 6:08 am

    I got a hard one for you.

    I know that with the expression

    $.evalFile (myPath);

    You can read a text file, but is there a way to append an existing text file on your computer or to create a new text file ?

    I have a text file called data.txt which I read the variables with the values in the file. If I want to do some calculations in one of my composition and store the result in a text file, either this one or another one so I can latter call the results.

    Can this be done? Basically I am asking if there is a write or print command for an external text file.

    Dan Ebberts replied 9 years ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    July 6, 2017 at 6:22 am

    There’s no way to write or save data with an expression.

    Dan

  • George Felix

    July 6, 2017 at 6:29 am

    Thank you

    One more questions, can you read data from a MS Access database with expressions and if so, what would the code be.

    George

  • Dan Ebberts

    July 6, 2017 at 12:46 pm

    The only way an expression can read an external file is with the $.evalFile() hack, which means that the contents of the file has to be text formatted as valid JavaScript. I don’t know the file format of MS Access, but I’m guessing it’s not likely that it would work.

    Dan

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