Page 1 of 1

How can I turn on and off a Checkbox effect in After Effect

Posted: July 11th, 2013, 8:18 pm
by AndyTroz
I have a Checkbox effect on the first layer of the first composition in my project window. I'd like to know what the script would look like to control this Checkbox (on and off) via ExtendScript.

This is the path to my Checkbox effect:

Code: Select all

app.project.item(1).layer(1).effect("Checkbox Control")("Checkbox");
I've tried to turn it on using:

Code: Select all

app.project.item(1).layer(1).effect("Checkbox Control")("Checkbox") = true;
app.project.item(1).layer(1).effect("Checkbox Control")("Checkbox") = 1;
This hasn't worked. What am I doing wrong?

Any help would be much appreciated! Thanks!

Re: How can I turn on and off a Checkbox effect in After Eff

Posted: July 12th, 2013, 12:00 am
by AndyTroz
I found the answer!

Code: Select all

app.project.item(1).layer(1).effect("Checkbox Control")("Checkbox").setValue(true);