ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Append a text file with expressions.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
George Felix
Append a text file with expressions.
on Jul 6, 2017 at 6:08:53 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.


Return to posts index

Dan Ebberts
Re: Append a text file with expressions.
on Jul 6, 2017 at 6:22:34 am

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

Dan



Return to posts index

George Felix
Re: Append a text file with expressions.
on Jul 6, 2017 at 6:29:47 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


Return to posts index


Dan Ebberts
Re: Append a text file with expressions.
on Jul 6, 2017 at 12:46:18 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



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]