Page 1 of 1

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

Posted: September 4th, 2014, 12:25 am
by bkan
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

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

Posted: September 4th, 2014, 7:37 am
by axymark

Code: Select all

ombreControler.numProperties
You would have figured it out if only you read the previous thread ;)

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

Posted: September 4th, 2014, 8:01 am
by bkan
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

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

Posted: September 4th, 2014, 8:07 am
by bkan
OK sorry it is app.version!