Check if effect or preset is available

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
User avatar
axymark
Posts: 23
Joined: November 29th, 2013, 7:04 am

July 12th, 2014, 9:44 am

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.
User avatar
axymark
Posts: 23
Joined: November 29th, 2013, 7:04 am

July 12th, 2014, 10:52 am

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;
    }
}
Post Reply