Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Question for Anyone

  • Question for Anyone

    Posted by Barry Suydam on March 18, 2011 at 3:17 pm

    n=8;
    showtext=text.sourceText.substr(0,n)+”_”;

    I used this code and it on accident gave me exactly what i needed. Thanks. What I was looking for was to have text type on inversely to normal. Usually you type in a linear fashion…what I was looking for was for each letter to push the previous letters index away from the words anchor point. so if a word is right justified it types out to the left but from its right justified anchor point. Confused yet? Sorry

    This code did this perfectly, however when doing the exact opposite the text types on like usual.(Left justified typed out one letter after the other…unwanted) Any way to duplicate the wanted behavior would be much appreciated..

    Dan Ebberts replied 15 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 18, 2011 at 6:16 pm

    Something like this maybe:

    n = Math.round(effect(“Slider Control”)(“Slider”));
    if (n > 0)
    “_” + value.substr(-n)
    else
    “_”

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