Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script Settings File

  • Andrei Popa

    January 22, 2022 at 7:42 am

    It is.

    Create your javascript object holding the settings. Then to save it to a file you need to serialize it. You can do that with .toSource(). This creates a string that you can later use with eval(). So save the string created by myVar.toSource() in a txt file and when you need that variable again, read the content of the file and pass it to eval(), like this:

    var mySettings = eval(contentOfFile);

  • Tomas Bumbulevičius

    January 24, 2022 at 6:19 pm

    Alternatively, have a .json settings file – not sure whether toSource is formattable option Andrei, is it? Like adding “tidy” tabulators and at least a bit of visual sense.

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