Discussion:
Changing a solid/shape size based characters in text
(too old to reply)
d***@adobeforums.com
2009-02-09 18:32:36 UTC
Permalink
is this possible thru expressions? please point me in the right direction - i am fairly good with expressions but this tis action stumps me
A***@adobeforums.com
2009-02-09 19:47:09 UTC
Permalink
Can you be a little more descriptive as to what you are trying to do?
d***@adobeforums.com
2009-02-09 21:37:54 UTC
Permalink
I also e-mailed Dan Ebberts who gave me this advice:

"

Doing it based on the number of characters should be pretty easy, you just need to define how many characters corresponds to 100% scale and ratio it from there. Something like this (I'm assuming you only want to scale the width):





T = thisComp.layer("some text").text.sourceText;
charsAt100 = 20;
w = T.length/charsAt100*100;
[w,value[1]]





The charsAt100 variable defines how many characters equate to 100% width.





Doing based on the actual size of the text is trickier. You have to use sampleImage() to find the extents of the text. I think somebody posted an expression to do this at AE Enhancers.





Dan

"

Thanks again Dan

Loading...