Scale Text based on its length
Hi all,
I'm new to after effects. I need to scale text based on its length. I hope this can be done with expression. But i don't know, how to do this? Could anybody help me to do this?
Regards,
Sasikumar
Hi all,
I'm new to after effects. I need to scale text based on its length. I hope this can be done with expression. But i don't know, how to do this? Could anybody help me to do this?
Regards,
Sasikumar
There's more than one way to interpret your description, but as an example, if you wanted your text to be 200 pixels wide, you could use a scale expression like this:
w = sourceRectAtTime(time,false).width;
if (w > 0){
s = (200/w)*100;
[s,s];
}else
value
Dan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.