Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ae text animator target text

  • ae text animator target text

    Posted by Christopher Hegenberg on March 3, 2022 at 2:58 am

    hi i was wondering if there is a way to use the text animator to animate from one sentence to another, going through unicode(?).
    im imagining if the the first letter is a it goes through the alphabet the reach the target letter in that position…

    maybe there is an easier way than expressions and im not getting it..

    thanks,

    chris

    Filip Vandueren replied 4 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    March 4, 2022 at 9:48 am

    Yes, in theory that’s possible with a text-animator with expression selector that controls “Character offset”. The sentences would need to have the same amount of characters.

    One thing you’ll run into is that spaces get ignored by the character offset animators… they always stay a space. Bummer. Unfortunately it extends to all kinds of spaces, so there’s no fooling the animator by replacing spaces with more exotic variations such as em-spaces or non-breaking-spaces etc.

    The only workaround would be to substitute the spaces with underscores, or macron-characters, and then do an extra animator that sets the opacity of those characters to 0, if they haven’t already morphed… You can see that’s spiralling into something complex rather quickly.

    It’s maybe easier to do it with an expression on the sourceText instead of an animator though.

    For example:

    str1= "From bedrooms to";
    str2= "to broken hearts";
    output="";
    for (i=0; i<str1.length; i++) {
    c1=str1.codePointAt(i);
    c2=str2.codePointAt(i);
    anim=linear(time-i/str1.length, 1,2, c1,c2)
    output += String.fromCodePoint(Math.floor(anim));
    }
    output;

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