After Effects expression tools
Methods
-
static doInExpresssions(func, currentCompopt, selectedCompsopt, selectedLayersopt, 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 PropertyExpression
object.currentComp
bool <optional>
false true: in current compositions, false: in all compositions of the project selectedComps
bool <optional>
false When currentComp is false, true to replace only in selected compositions selectedLayers
bool <optional>
false When currentComp is true, wether to replace only on selected layers 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 updateCache(currentCompopt, selectedCompsopt, selectedLayersopt)
-
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 emptyParameters:
Name Type Attributes Default Description currentComp
bool <optional>
false true: in current compositions, false: in all compositions of the project selectedComps
bool <optional>
false When currentComp is false, true to replace only in selected compositions selectedLayers
bool <optional>
false When currentComp is true, wether to replace only on selected layers