If(thisComp.layer(“WhiteShape”).transform.opacity>50) 100 else 50 The expression used in the example above is: Simply open up your expression editor by holding down Option and clicking on the stopwatch next to the parameter you want the If/Else statement to effect. Writing an If/Else statement is fairly straight forward. How to Write an If/Else Conditional Expression Here’s what our After Effects timeline looks like for this example: If the white squares opacity is less than 50% the text opacity will be 50%. In this example, the code states that if the white shape’s opacity is more than 50% than the text opacity will be 100%. Let’s take a look at a really basic model: If this sounds confusing, don’t worry! It’s simplier than you might think. What is an If/Else Expression in After Effects?Īn If/Else expression in After Effects is a line of code that will change it’s output value based on the input value. You don’t have to be a computer programmer to get a handle on expressions in After Effects. Let’s dig into the powerful If/Else expression in After Effects. If/Else expressions are incredibly useful in After Effects…if you know how to use them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |