Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Expression to smooth a crawl text (horizontal)?

  • Expression to smooth a crawl text (horizontal)?

  • David Crews

    May 22, 2020 at 5:30 am

    I’m not someone who uses expressions very much, so I may be asking something simple. I’m trying to animate a text layer horizontally (a crawl vs. a vertical roll). Due, I believe, to the interpolation of frame rate vs. pixels moved, there is judder / hesitations in the resulting movement.
    Increasing my comp’s frame rate from 29.97 to 59.94 helped most of it, but I was hoping to find an expression that forces the crawl to match a whole number on the pixel movement.
    There’s a somewhat circulated expression that does this for rolls (vertical, like credits: See the expression I linked)

    I’m wondering if there is a parameter in it somewhere telling it to operate on the y axis — a parameter that could be changed to make it work on the x axis instead? or some other expression that does this job, but on the x axis?

    Appreciate any insights. Thanks!

    speedPxPerFrame = 2;
    currentFrame = (time - inPoint)/thisComp.frameDuration;

    value - [0, currentFrame*speedPxPerFrame]

    David

    David P. Crews
    CrewsCreative
    Post Production – Motion Graphics – Original Music
    512.663.9669
    https://www.CrewsCreative.com
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Andrei Popa

    May 22, 2020 at 6:44 am

    If what you want is to change this to modify x instead of y, try this

    speedPxPerFrame = 2;
    currentFrame = (time - inPoint)/thisComp.frameDuration;

    value - [currentFrame*speedPxPerFrame,0]

    If you want to change directions, change the sign in the last line

    speedPxPerFrame = 2;
    currentFrame = (time - inPoint)/thisComp.frameDuration;

    value + [0, currentFrame*speedPxPerFrame]

    Andrei
    My Envato portfolio.

  • David Crews

    May 22, 2020 at 3:17 pm

    Thanks, Andrei! That’s exactly the info I wanted.
    It works to make the move but, unfortunately, it did not solve my judder/random hesitations problem. I’ll have to do some further research and tests to find out what’s causing that.

    David

    David P. Crews
    CrewsCreative
    Post Production – Motion Graphics – Original Music
    512.663.9669
    https://www.CrewsCreative.com
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Viewing 1 - 3 of 3 posts

Log in to reply.

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