Activity › Forums › Adobe After Effects Expressions › Turning only one effect on
-
Turning only one effect on
Posted by Pierre-alexis Tremblay on November 2, 2010 at 2:39 pmHello,
I have 3 different tint effects applied to 1 layer and I’d ideally have to make sure that when you turn one on the others turn off automatically. Is that possible?
Thanks
P.A.T.
Chris Wright replied 15 years, 6 months ago 3 Members · 4 Replies -
4 Replies
-
Kevin Camp
November 2, 2010 at 3:25 pmyou can probably detect if an effect is enabled, but i don’t think you can enable or disable and effect using expressions.
what you could do is have an expression operate on the ‘amount’ property with respect to the other effects’ ‘amount’ property, with 0 being off and 100 being on.
something like this would set the amount based on two other effects’ amount settings:
e1=effect("Tint 2");
e2=effect("Tint 3");if (e1(3)==100 || e2(3)==100) 0 else 100;
you would change e1 and e2 to be the other two tint effects as you paste that into the ‘amount’ expression field of each tint effect.
however, there may be a better way to control this if you tell us more about what the goal is… maybe entering a value in a layer marker, like 1, 2 or 3 to show just the corresponding tint effect would be simpler to control.
Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW -
Pierre-alexis Tremblay
November 2, 2010 at 3:48 pmIn short, I’m building AE templates for that have to be simple of use and foolproof for editors (with all due respect for their noble profession).
At one point the user has to choose a color for an icon based on a 3-color palette.
I thought of applying 3 tint effects to a black icon layer so the user only has to turn on the effect for the desired color and turn off the 2 others.
But if he’s really tired and turns 2 or 3 on by accident, it creates a new “off-palette” color and we don’t want that.
Maybe I should rethink this strategy altogether…P.A.T.
-
Kevin Camp
November 2, 2010 at 4:39 pm[Pierre-Alexis Tremblay] “if he’s really tired and turns 2 or 3 on by accident, it creates a new “off-palette” color and we don’t want that.”
to prevent a color effecting another color, you could try 3 fill effects for colorizing, then add the cc composite effect set to ‘screen’ (or possibly another composite setting). then they would show or hide a fill effect to set the color, but there is no chance of mixing 2 colors.
Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW -
Chris Wright
November 2, 2010 at 6:56 pmwhat I do is create checkbox’s in layers called Controls, then hide all the other layers. Then simply do a opacity * 100 because checkbox’s are 1 or 0. Then use kevin’s expression or something similar to make only one layer visible. It’s basically making a poor man’s AEX file.
https://technicolorsoftware.hostzi.com/
Reply to this Discussion! Login or Sign Up