Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesTrainingCreative Cloud DebateFAQ

Text typewriting in, but Staying Centered

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Adam StockholmText typewriting in, but Staying Centered
by on Oct 18, 2011 at 5:40:41 pm

Hi!

This is for a tool kit, hence why it needs to be updatable and automated

I would like to have the typewriter effect bring the letters on, but as the letters appear the text stays in the center of the screen.

So if the word was "Football", the "F" starts in the center, when the o appears the "F" shifts over to the left and the "o".. is now in the center..and so on.

Thanks!!

Adam


Return to posts index
Reply   Like  

Dan EbbertsRe: Text typewriting in, but Staying Centered
by on Oct 18, 2011 at 8:12:48 pm

Instead of using the typewriter preset, you could set your text layer to right justification and use a Source Text expression like this:

charPerSec = 4;
idx = Math.floor(time*charPerSec);
value.substr(0,idx)

This will bring the characters in at 4 characters per second and each will appear just to the left of the anchor point as the others move to the left.

Dan



Return to posts index
Reply   Like  

Adam StockholmRe: Text typewriting in, but Staying Centered
by on Oct 18, 2011 at 9:17:12 pm

Thanks a lot Dan!

That's really close, I actually changed the type to centered and it did exactly what I needed it to.

There is one problem. It will not read kerning. Just manual kerning. With this being a toolkit, they will definitely be individually kerning. Any ideas?

Thanks!


Return to posts index
Reply   Like  


Dan EbbertsRe: Text typewriting in, but Staying Centered
by on Oct 19, 2011 at 12:03:03 am

Ugh. If you go back to the typewriter preset and add this Position expression to the text layer, it might get you close to what you're after. Ugly though.


for (i = thisComp.width; i >= 0; i--){
temp = sampleImage([i,thisComp.height/2],[0.5,thisComp.height/2],true,time);
if (temp[3] > 0) break;
}
value - [i-value[0],0]



Dan



Return to posts index
Reply   Like  

Adam StockholmRe: Text typewriting in, but Staying Centered
by on Oct 19, 2011 at 1:28:52 pm

Yeah, I know you don't like using sampleImage because it's a hack, but I appreciate it.

I think that this could work. The type appears in the middle and the existing letters move to the left. Is there a way to tell the the text to always stay centered in the comp window. As the letters appear it realigns the position to the center?


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]