-
Why does my script makes After Effects crash?
Hi,
I made a script UI with a ‘edit text’ and a button. It apply to selected layers a effect that is inside the ‘edit text’. But when typing the effect wrong and using the button to apply, After Effects freezes. What can I do to make After Effects not crash when trying to apply an effect that doesn’t exist?
function addEffect(findString)
{
if (myFindString == “”) {
return;
}
var curItem = app.project.activeItem.selectedLayers;
for (i=0; i