Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Save script settings/changes

  • Save script settings/changes

    Posted by Jacob Danell on July 26, 2013 at 10:18 pm

    Hi! Now I’m finishing off my script with the last details. I have added some settings that changes the outcome of the script but I would want those settings to be saves till next time you open the script.
    The things that can be changed is a EditText-box, one checkbox and two RadioButtons. I have tried to find ways to do this without success. I don’t know if it’s easy to do or if it’s very advanced and will need a lot of rewriting of the script.
    If you could only point me to the right direction it will be a great help!

    Thank you!

    Xavier Gomez replied 12 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    July 27, 2013 at 8:46 am

    See app.settings in the After Effects scripting guide.

    The commands are:
    app.settings.haveSetting(sectionName, keyName) // returns a boolean
    app.settings.getSetting(sectionName, keyName) // returns a string
    app.settings.setSetting(sectionName, keyName, value) // writes a string (value) in the prefs file and returns nothing.

    Care, value must be a string and app.settings.getSettings always returns a string.

    Xavier

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