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