-
After Effects Effects Properties setting scripting.
I am trying to create a simple animation and change a setting on the stroke effect. But the following function is only applying the effect itself but not setting keyframes and animating it and also not changing the Paint Style to “Reveal Original Image”. What am I doing wrong ? Thank you very much.
// Set brush hardness and paint style
strokeEffect.property(“Brush Hardness”).setValue(100);
strokeEffect.property(“Paint Style”).setValue(2); // Set to “Reveal Original Image”
strokeEffect.property(“Path”).setValue(maskPath);
// Set keyframes for the “End” property
var startTime = comp.time;
var endTime = comp.time + 1;
var endProp = strokeEffect.property(“End”);
endProp.setValueAtTime(startTime, 0);
endProp.setValueAtTime(endTime, 100);
}