Settings object

Description

The Settings object provides an easy way to manage settings for scripts. The settings are saved in the After Effects preferences file and are persistent between application sessions. Settings are identified by section and key within the file, and each key name is associated with a value. In the preferences file, section names are enclosed in brackets and quotation marks, and key names are listing in quotation marks below the section name. All values are strings.

You can create new settings with this object, as well as accessing existing settings.

Methods

Method Reference Description
saveSetting() Settings saveSetting() method” Saves a default value for a setting.
getSetting() “Settings getSetting() method” Retrieves a setting value.
haveSetting() “Settings haveSetting() method” Reports whether a specified setting is assigned.

Other Tags

Posted in Settings object and tagged , , , , , , , , , , , , , , .