making layers active / inactive

What type of scripts do you need?

Moderator: byronnash

Post Reply
ilmeri
Posts: 10
Joined: November 9th, 2007, 1:01 am

Hi,

Is it possible to make a layer active / inactive with expressions using the checkbox-expression control effect?

I have layers in my comp that make up groups like head, torso etc, and i'm trying to make it easier switching particular
groups on / off, so i can render one group at the time.

thanks!

-ilmeri
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

You can't use an expression to turn the layer's eyeball on/off, but you can use it to control a layer's opacity. The Checkbox Control returns a value of 0 when unchecked and 1 when checked, so you could use and expression like this on the Opacity property:

value * thisComp.layer("control layer").effect("Checkbox Control")("Checkbox");
Post Reply