Page 1 of 1

Check if effect or preset is available

Posted: July 12th, 2014, 9:44 am
by axymark
Hi,

How do you check if an effect is available (installed)?

Depending on whether user has a certain plugin/effect installed i need to either add that or perform a set of actions to mimic the desired effect so i need to check first.

Appreciate your help.

Re: Check if effect or preset is available

Posted: July 12th, 2014, 10:52 am
by axymark
Never mind, figured it out.

Code: Select all

var effectNameCollection = app.effects;
var check = false;
for (var i = 0; i < effectNameCollection.length; i++) {
    var name = effectNameCollection[i].displayName;
    if (name == "Effect Display Name") {
        check = true;
    }
}