Namespace

DuAEExpression

DuAEExpression

After Effects expression tools

View Source DuAEF_DuGR_api.jsxinc, line 22017

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_DuGR_api.jsxinc, line 22032

string

# static Id

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

View Source DuAEF_DuGR_api.jsxinc, line 22041

Methods

# static applyCache(cacheopt)

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 Description
cache Array.<DuAEPropertyExpression> <optional>
The cache to apply, if different from the automatic DuAEF Cache

View Source DuAEF_DuGR_api.jsxinc, line 22106

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

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 bool <optional>
false 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.

View Source DuAEF_DuGR_api.jsxinc, line 22088

# 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_DuGR_api.jsxinc, line 22119

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_DuGR_api.jsxinc, line 22050