How to know how many parameters does have an effect??

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
bkan
Posts: 51
Joined: November 6th, 2013, 8:33 am

September 4th, 2014, 12:25 am

Hello,
I just want to know if it's possible to know how many parameters does have an effect?

For example,

var controler = app.project.activeItem.layers.addNull();
var ombreControler = controler.Effects.addProperty("ADBE Drop Shadow");

I tried ombreControler.property.length but it returns 0.

Any idea?

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

September 4th, 2014, 7:37 am

Code: Select all

ombreControler.numProperties
You would have figured it out if only you read the previous thread ;)
bkan
Posts: 51
Joined: November 6th, 2013, 8:33 am

September 4th, 2014, 8:01 am

Oh, thank you!
Another question : is it possible to detect which version of after effects is using, because the numProperties of an effect vary according the version : in CC, there is one more property per effects which is the new "Compositing options"!!

Thanks
bkan
Posts: 51
Joined: November 6th, 2013, 8:33 am

September 4th, 2014, 8:07 am

OK sorry it is app.version!
Post Reply