Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for typewriter effect

  • Expression for typewriter effect

    Posted by Scott Ratner on March 28, 2016 at 7:41 pm

    Hi,

    i am trying to figure out a way to set the speed of the typewriter animation without keyframes to be the same rate regardless of the length of the text.. so i don’t have to adjust keyframes every time i use it… is there a way to define the typing speed by “letters per frame” or something? Or any workaround for this?

    I need it to write on lower thirds,, and the names are all different lengths..this would save a lot of time..

    I tried to simply use the (time*) expression on the start of the range selector but that didn’t seem to work..

    Scott

    Scott Ratner replied 10 years, 1 month ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    March 28, 2016 at 8:02 pm

    Something like this for the Start parameter, maybe:

    charPerSec = 5;
    t = time – inPoint;
    (t/charPerSec)*100

    Dan

  • Scott Ratner

    March 28, 2016 at 8:28 pm

    Thanks…

    The problem is that it dosent seem to take into account the amount of characters, it just automates the 0-100 percent value of the range selector, so if i duplicate the layer and add longer text, it reads out the longer text in the same amount of time.

    Scott

  • Dan Ebberts

    March 28, 2016 at 8:36 pm

    That’s because I left out a step. Sorry–try it this way:

    charPerSec = 5;
    sec = text.sourceText.length/charPerSec;
    t = time – inPoint;
    (t/sec)*100

    Dan

  • Scott Ratner

    March 28, 2016 at 10:34 pm

    Sweet….

    Looks like that did it… Lifesaver, thanks so much. I need to learn how to write expressions.

    Scott

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy