Global

Members

colorPicker

ColorPicker v2.0 for Adobe scripting.
2016-5-11 -> 2016-7-24
This is a rebuilt color picker for Adobe scripting.
Support all Adobe softwares such as PS,AI,PR and so on.
See usage on github.com/Smallpath/AdobeColorPicker
Author:
  • smallpath
License:
  • MIT

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

def(val, defaultVal, doPostInitopt) → {object}

Assigns a default value to a var if it's undefined.
Parameters:
Name Type Attributes Default Description
val object The variable to set
defaultVal object The default value
doPostInit boolean <optional>
true True to trigger the post-init method of DuAEF when run.
Set it to false if it is used in a method which has to run during initialisation of your script,
and true if it is used in a method run by the user later.
Returns:
object - The var

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