-
Character Scale Animation based on length of text
Hello
I find it really irritating when I choose a “text animate in” preset that it is a pre-defined duration and I have to alter the keyframes to get the timing as I would like it. It is especially frustrating when you are working with many pieces of text that you want to animate on in the same way – short sentences pop on slowly, long ones come on fast.So – is there an expression that I can use to 1. deduce the number of charaters in a text layer (I already know there is: n = text.sourceText.length;) and 2. to use this figure to time the duration of the animation?
So, if the text layer contains 25 characters, the animation takes 25 frames to complete, from 0% to 100%. If it contains 50 characters, it takes 50 frames, etc.
Any thoughts?
Thanks – Chris