Effect disable

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
edzis
Posts: 4
Joined: December 13th, 2009, 3:36 pm

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.
kobyg
Posts: 128
Joined: December 7th, 2007, 10:11 am

Try this:
effect.expressionEnabled = false;
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

I think that would just be:

effect.enabled = false;


Dan
edzis
Posts: 4
Joined: December 13th, 2009, 3:36 pm

yep, as straightforward as "enabled" works. Should have thought of testing that before asking. Thanks!
Post Reply