How do I create a source text value slider?
Copy link to clipboard
Copied
HI all. I am a beginner when it comes to After Effects. I have a comp that I've created for displaying the scores from disc golf players in a tournament. As it stands, I have the Essential Graphics panel setup so that the source text for each score I want to display is editable. So I have to manually type in the score each time I place that motion graphic in the timeline in Premiere Pro.
What I would like to do is create a slider for each score displayed so I can just select the appropriate score rather than typing it in. I have a slider control added to the text I want to control. What I don't know how to do is write an appropriate expression so that I can select a number range, say 1-20. Can somebody please direct me to the appropriate expression code to create the slider properly?
Thanks in advance for any help.
Copy link to clipboard
Copied
Just thought I'd add that after I made this post, I found the solution I was looking for. Adobe had it linked in their help pages on expressions. http://allbetsareoff.com/2009/08/rgtv-ep-26-score/
Copy link to clipboard
Copied
The expression you are looking for is
Math.round(thisComp.layer("LAYERNAME").effect("Slider Control")("Slider"))

