🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.after.effects.expressions
3 messages
3 total messages Started by danmarkermoore Mon, 09 Feb 2009 18:32
Changing a solid/shape size based characters in text
#319
Author: danmarkermoore
Date: Mon, 09 Feb 2009 18:32
1 lines
702 bytes
is this possible thru expressions? please point me in the right direction - i am fairly good with expressions but this tis action stumps me
Re: Changing a solid/shape size based characters in text
#320
Author: Aaron_Cobb
Date: Mon, 09 Feb 2009 19:47
1 lines
728 bytes
Can you be a little more descriptive as to what you are trying to do?
Re: Changing a solid/shape size based characters in text
#321
Author: danmarkermoore
Date: Mon, 09 Feb 2009 21:37
36 lines
1345 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads