Thank you for your reply.
But I just tried, not working as well.
And I tried the old way like this, and it worked.
button.onClick = function(){
var theComp = app.project.activeItem;
var StrokeASolid = theComp.layers.addSolid([0, 0, 0], “StrokeA Main”,1920, 1080, 1.0, 20);
StrokeASolid.blendingMode = BlendingMode.ADD;
var StrokeAFx = File(“C:/Program Files/Adobe/Adobe After Effects CC 2017/Support Files/Scripts/StrokeAMain.ffx”);
StrokeASolid.applyPreset(StrokeAFx);
}
Thats why I am wondering….. 🙁