The ScriptPrefs class allows user scripts to store and retrieve settings. These stored settings are re-loaded each time Moho 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".
Store a boolean value.
Return value: none key (string): the key to locate the value value (bool): the value to storeRetrieve a boolean value that was previously stored.
Return value (bool): the stored value key (string): the key to locate the value defaultValue (bool): a default value to return if the key cannot be foundReturn value: none key (string): value (int):
Return value (int): key (string): defaultValue (int):
Return value: none key (string): value (float):
Return value (float): key (string): defaultValue (float):
Return value: none key (string): value (string):
Return value (string): key (string): defaultValue (string):