extendscript after effects: is there a way to create a simple module to apply effects
is there a way I can simplify my work by creating an add effect module rather than creating line-by-line code for each effect like this?
1: i want to create a module and call it from button click
somefunction(effect name),selected layer
somefunction(BCC Temporal Blur)selected layer
rather than creating big lines of codes under button click below
currently, i have code like this to apply or add
myComp = app.project.activeItem;
mySolid = myComp.layers.addSolid([0,.8,.4], "BG", myComp.width, myComp.height,1);
mySolid.startTime = 0
myEffect = mySolid.property("Effects").addProperty("Power Stroke");
app.endUndoGroup();apply effect on the selected layer
var myComp = app.project.activeItem;
var preCompLayer = myComp.selectedLayers[0];
preCompLayer.property("Effects").addProperty("BCC Velocity Remap");
