Class ScriptPrefs

Version added: before 9.5
The ScriptPrefs class allows user scripts to store and retrieve settings. These stored settings are re-loaded each time Anime Studio is run. Stored values are stored under a key name (a text string). Typically, so that different scripts don't interfere with one another, a script should use its own name as part of the key. For example, if the "MyFirstScript" script wanted to save the "pointCount" setting, it would save it using the key "MyFirstScript.pointCount".

Methods:

Name Returns Description Ver
GetBool bool Retrieve a boolean value that was previously stored < 9.5
GetFloat real < 9.5
GetInt int32 < 9.5
GetString char < 9.5
SetBool void Store a boolean value < 9.5
SetFloat void < 9.5
SetInt void < 9.5
SetString void < 9.5