Global

Members

JSON

JSON parser.
License:
  • Public-Domain
See:

seedRandom

Adds a new Math.seedRandom() method, used as a workaround for a bug in Math.random() with After Effects on Mac OS
Author:
  • David Bau
License:
  • MIT

Methods

tr(s, or, args) → {string}

Translate a given string based on the current seted language
see DuAEF.Dutranslator for more details about the translation framework.
Parameters:
Name Type Description
s string The text to be translated
or int {string} context - Can be an integer or a string which is related to contextId or context in a translation file
args Array.<string> Args to format into the translated string, default is []
For example, when calling tr("Welcome {#}", -1, "Paul"), the output will be "Welcome Paul"
If too many args are given, there are ignored
If not enough args are given, the {#} are replaced with ?
Returns:
string - The translated text or s if nothing is set or available

Type Definitions

OnionSkin

An onion skin
Properties:
Name Type Description
activated boolean Is it activated
duration int Duration in frames
exposure int Animation exposure
outOpacity int out opacity
inOpacity int in opacity