Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Natural Type-On Expression

  • Natural Type-On Expression

  • Sher Safi

    February 17, 2018 at 10:37 am

    Awesome expression, Dan.

    Is there a way to add a Blinking cursor? that would be nice.

    I also have the below expression which has the cursor but only would’ve been better if it had a random feeling to the typing effect.

    L = text.sourceText.length;
    T = time*effect("Speed")("Slider") - effect("Start At")("Slider")*effect("Speed")("Slider");
    F = Math.round(time % 1);

    if(F == 1 | (T0) ){Fl = "|";}else{Fl=" ";}

    substr(0,T) + Fl

  • Adam Haas

    October 23, 2018 at 11:48 pm

    How can I do this so it starts at the beginning of the layer and not the composition?

  • Kalleheikki Kannisto

    October 25, 2018 at 8:42 am

    From earlier in this thread:

    I think you just need to change this line:

    t = 0;

    to this:

    t = inPoint;

    Dan

    Kalleheikki Kannisto
    Senior Graphic Designer

  • John Crump

    October 6, 2020 at 6:44 pm

    This works very well Dan, but is there a solution to make this work per word instead of per character? Thank you

  • Filip Vandueren

    October 6, 2020 at 7:55 pm

    I think this should work for words:

    words=value.match(/([^\s\u0003]*[\s+|\u0003]?)/g);
    minRate = 10; // frames per character
    maxRate = 20;
    wordCount = 0;
    t = inPoint;
    seedRandom(index,true);
    while (t < time){
    wordCount++;
    t += framesToTime(random(minRate,maxRate));
    }
    words.slice(0,wordCount).join("");
  • John Crump

    October 6, 2020 at 8:17 pm

    amazing, thanks Filip!

Viewing 21 - 26 of 26 posts

Log in to reply.

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