Namespace

DuAEExpression

DuAEExpression

After Effects expression tools

View Source DuAEF.jsxinc, line 25732

Namespaces

Library
Library

Members

int

# static readonly BakeAlgorithm

The different modes available to bake expressions
Properties:
Name Type Description
SMART int
PRECISE int

View Source DuAEF.jsxinc, line 25747

string

# static Id

The list of expression IDs, added at the beginning of generated expressions.
Properties:
Name Type Description
LINK string

View Source DuAEF.jsxinc, line 25756

Methods

# static applyCache(cacheopt, onlyIfNoErroropt)

Applies all the expressions stored in the cache to the actual properties in After Effects, if and only if they've been modified.
Parameters:
Name Type Attributes Default Description
cache Array.<DuAEPropertyExpression> <optional>
The cache to apply, if different from the automatic DuAEF Cache
onlyIfNoError boolean <optional>
false Applies only if it doesn't generate an error.

View Source DuAEF.jsxinc, line 25823

# static doInExpresssions(func, selectionModeopt, updateCacheopt, applyopt, onlyIfNoErroropt)

Runs a function on all expressions
Parameters:
Name Type Attributes Default Description
func function The function to run, which takes one param, a DuAEPropertyExpression object.
selectionMode DuAE.SelectionMode <optional>
DuAE.SelectionMode.ALL_COMPOSITIONS What to update
updateCache boolean <optional>
true When false, the cache won't be updated before running the function. Set this to false if you already have updated the cache to improve performance.
apply boolean <optional>
true When false, the cache won't be applied back to Ae. Set this to false if you need to run other methods on expressions before applying the result to improve performance.
onlyIfNoError boolean <optional>
false Applies the cache only if it doesn't generate an error.

View Source DuAEF.jsxinc, line 25804

# static scriptifyExpression(prop, varNameopt) → {string}

Converts the expression as a string which can be copy/pasted and included in a script.
Parameters:
Name Type Attributes Description
prop Property | DuAEProperty | string The property containing the expression or the expression itself.
varName string <optional>
A name for the variable

View Source DuAEF.jsxinc, line 25838

The stringified expression.
string

# static updateCache(selectionModeopt)

Updates the cache of the expressions used by Duik to speed up batch process of expressions in the whole project.
It's automatically run when needed if it's not been updated in a long time (1 mn) or if it's empty
Parameters:
Name Type Attributes Default Description
selectionMode bool <optional>
DuAE.SelectionMode.ALL_COMPOSITIONS What to update

View Source DuAEF.jsxinc, line 25765