PDA

View Full Version : Expression for Counting Text



skettalee
10-07-2008, 03:01 PM
What I got right now is a Text Layer thats parented to an arrow moving up. I want the text to jump from 1 to 100% and I added a slider with 2 keyframes from 0 to 100. I pickwhiped the Source Text to the slider properties but cant figure out the code to add to make sure it doesn't have decimal numbers and only whole numbers as well as a % sign after it.

Can someone tell me what expression I need? So far its this :

effect("Slider Control")("Slider")

skettalee
10-07-2008, 06:55 PM
Ok well, I guess no comment forced me to figure it out! This is the code I had to figure out to get it to work :

Math.round(effect("Slider Control")("Slider")) + "%"