After Effects expression tools
Namespaces
Members
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 |
# 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. |
# 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 |
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
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 |