Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
perpen
Topic Author
Posts: 3
Joined: Sat Feb 09, 2008 5:39 am

Using expression control to turn effect on and off

Sat Feb 09, 2008 6:04 am

Hi there,

I would like to use an expression control effect (checkbox) to turn on and off a set of other effects in other layers. Is that posible?, I have been trying to get information about if effect on/off is a linkable parameter but could't find anything on it.

Thanks for your time.
 
Dan Ebberts
Posts: 318
Joined: Sat Jun 26, 2004 10:01 am
Location: Folsom, CA
Contact:

Re: Using expression control to turn effect on and off

Sat Feb 09, 2008 12:06 pm

A lot of effects have an "amount" or "blend with original" parameter that you could control with an expression like this:

checkbox = effect("Checkbox Control")("Checkbox").value;
if (checkbox == 1) 100 else 0

Also, if you have a bunch of effects that you want to go on and off at the same time, you could apply the effects to an adjustment layer and apply the expression to opacity.

Dan

Who is online

Users browsing this forum: No registered users and 2 guests