Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Scaling resizing text box

  • Scaling resizing text box

    Posted by Steve White on December 26, 2018 at 7:02 pm

    Hi, I’m trying to replicate this animation with expressions but I’m not very good with them.

    1 – How can I simulate the typewriting effect automatically with the range selector, for example every second it has to show 10 words
    2 – How can I paste the text in the middle of the text box without align the box every time (the baseline in the middle)
    3 – How can the yellow line grown following the text
    4 – How can the yellow line start the animation when the typewriting effect is finished
    5 – How can the mask follow the yellow line
    6 – How can I understand when the all animation is finished, for example, when the yellow line disappear, it appears a marker

    Please help me, thanks a lot ????❤

    Kalleheikki Kannisto replied 7 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    December 27, 2018 at 9:30 am

    Since it is a fairly complex set of expressions, if you need someone to write the full expression, you’d likely have more success by hiring someone to do it. It will likely take hours to write, test and debug.

    If you are attempting to do this yourself, here are some pointers numbered based on your questions:

    0) In general, everything is tied to the Time variable.

    1) The key properties here are time and the length of the text. You’d move the range selector end based on time, and the speed at which you move it depends on the number of characters or words in the text.

    2) If you mean vertical centering, there are several threads in this forums about the expressions that achieves this.

    3) The sourceRectAtTime() expression can give you the height of the text box content. Making it transition smoothly is a different matter. The “easy” way is to smooth the result, but more than likely it will require a loop that looks backwards frame by frame to see where the last change in text content height is.

    4) It would start when the range selector value reached 100. You’d have calculated this point in step 1.

    5) The mask should probably be a rectangular track matte with the anchor point set to the right edge. That would simplify the expression.

    6) You cannot create a marker with expressions. But you could do the whole thing in reverse, have a marker control the length of the complete animation. Several threads about that exist, but you’d have to tie everything in the animation to the range between the start of the animation and the marker location (in time).

    Kalleheikki Kannisto
    Senior Graphic Designer

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