Page 1 of 1

Effect disable

Posted: January 5th, 2010, 6:45 am
by edzis
How can I disable an effect? I need to add an effect to a layer with some settings but then disable (or maybe "hide" is the real word?) it to use that later by the user.
I use the following script:

Code: Select all

var effect = alphaLayer.property("Effects").addProperty("CC Wide Time");
effect.property("Forward Steps").setValue(20);
effect.property("Backward Steps").setValue(0);
Unfortunately effect.numProperties equals to 3 - these two properties and "Native motion Blur". I do not see an enabled value or anything like that.

Re: Effect disable

Posted: January 5th, 2010, 9:57 am
by kobyg
Try this:
effect.expressionEnabled = false;

Re: Effect disable

Posted: January 5th, 2010, 11:28 am
by Dan Ebberts
I think that would just be:

effect.enabled = false;


Dan

Re: Effect disable

Posted: January 8th, 2010, 12:16 am
by edzis
yep, as straightforward as "enabled" works. Should have thought of testing that before asking. Thanks!