🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.after.effects.expressions
Article #321

Re: Changing a solid/shape size based characters in text

#321
From: 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
Technical Details
Message-ID: <59b7d459.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7d459.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f450a,fe9701c64f645b8c
X-Google-Attributes: gidf450a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: danmarkermoore@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.after.effects.expressions
Subject: Re: Changing a solid/shape size based characters in text
Message-ID: <59b7d459.1@webcrossing.la2eafNXanI>
Date: Mon, 9 Feb 2009 13:37:54 -0800
References: <59b7d459.-1@webcrossing.la2eafNXanI>
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit