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

What type of scripts do you need?

Moderator: byronnash

Post Reply
AndyTroz
Posts: 5
Joined: March 29th, 2009, 12:18 pm

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!
AndyTroz
Posts: 5
Joined: March 29th, 2009, 12:18 pm

I found the answer!

Code: Select all

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