Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Re: expression for length of text layer

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


cowcowcow
Re: expression for length of text layer
by Trent Armstrong on Nov 11, 2008 at 4:10:27 am

temp = thisComp.layer("TEXT").text.sourceText;

s = temp.length;

x = 100 * (s * .175);
[x, value[1]]


I have goofy HACK that might need some tweaking.

Either call your text layer "TEXT" or change the name in the expression. And apply the expression to the Scale of your solid.

I tested it a few times and it seemed to work okay. You'll probably have to adjust the number you multiply "s" by to go with your particular font and tracking.

(Dan, can you make this more elegant?)

Trent





Trent Armstrong - Creative Cow Leader
http://www.dallasaeug.com


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]