Activity › Forums › Adobe After Effects Expressions › making a flip control
-
making a flip control
Posted by Ben Wolfinsohn on November 22, 2012 at 10:20 pmI want to have a checkbox control so when its checked it flips the layer. so if the scale was “100,100” after its checked it goes to “-100,100”
Dan Ebberts replied 11 years, 3 months ago 4 Members · 4 Replies -
4 Replies
-
Dan Ebberts
November 22, 2012 at 11:26 pmThis should work:
if(effect(“Checkbox Control”)(“Checkbox”).value) [-value[0],value[1]] else value
Dan
-
Everton Gois
February 21, 2014 at 11:11 amFantastic……I had the same isuue.
Thanks Dan!!!!Everton Gois
Digital Artist -
Darrick Hays
February 6, 2015 at 8:36 pmHi Dan, could you elaborate on this please? I’m pretty new to expressions and i’m not sure what values i should be inputting here where it says value, or what I should be pickwhipping to my checkbox control, etc. If you could explain it in some more detail that would be fantastic.
-Darrick
-
Dan Ebberts
February 6, 2015 at 10:13 pmAssuming you apply the checkbox to the layer you want to flip, you would just apply the expression, as-is, to the Scale property of the layer.
“value” just tells the expression to use whatever the pre-expression value is. So if you have the scale set to 80% x and 90% y before you apply the expression, when you check the checkbox, it will become -80% and 90%.
Dan
Reply to this Discussion! Login or Sign Up