After effects expressions list12/11/2023 Create your bars at 100% width (you should also move the bar's anchor to the far left, or where ever you want them to scale from). We can use the same concept to set up our bars. Val2 = thisComp.layer("Val 2").effect("Slider Control")("Slider") Something like: val1 = thisComp.layer("Val 1").effect("Slider Control")("Slider") Repeat the same steps as above for your second input (so you need a total of 2 null objects, each with a slider, and 2 text layers with an expression pulling the value from the correct slider (simply change layer("Val 1") in both expressions to reference the correct layer names).įor your sum total text you need another text layer with an expression pulling both slider values and adding the values together. The rest simply gets the value from the slider from the correct layer. The Math.round() just means we get an integer, otherwise we get a ton of decimal places. The expression we need is: Math.round(thisComp.layer("Val 1").effect("Slider Control")("Slider")) Open the "Text" property and alt+ click the stopwatch next to "Source Text" to add an expression to the text itself. This gives us a handy slider in the Effects panel that we can use as an input in expressions.Ĭreate a new text layer to show our input from the slider. Slider ControlĬreate a null object (Layer → New → Null Object) and add a slider expression control to that null object by going to (Effect → Expression Controls → Slider Control). All we need is two control inputs and expressions on the various layers to pull the values from the inputs. This is actually pretty easy to set up with a few expressions and control inputs.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |