Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Typewriter effect: how to scroll text upwards?

  • Typewriter effect: how to scroll text upwards?

    Posted by Paulo Jan on May 22, 2008 at 10:45 pm

    Hi all:

    I’m trying to create a typewriter effect, where text appears letter by letter, and whenever an end of line is reached the text scrolls one line upwards. So far so good, but the only problem I have is that I can’t find any way to actually modify the position property. What I’m doing is:

    if (character == ‘\r’) {
    [position[0], position[1] – 48]
    }

    (Where “character” is the variable that holds the current character, and “48” is the height of each text line). Surely enough, the text jumps upwards when it reaches the end of a line, but on the next frame it comes back to its initial position. It seems that “position” is a read-only property, so I can’t actually modify it by substracting 48. I’ve also tried adding an Slider Control effect as a placeholder, to store the Y value as it gets decreased… but it also seems to be read-only. How can I do this?

    Thanks in advance,

    Paulo.

    Dan Ebberts
    replied 17 years, 1 month ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 23, 2008 at 12:44 am

    Unfortunately, you can’t accumulate expression data from one frame to the next. What you probably could do though, is calaculate which line you’re currently on and multiply that by -48 to get the correct y postion for the current time. The details would depend on how you have things set up, but it should be do-able.

    Dan

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