ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression to smooth a crawl text (horizontal)?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Crews
Expression to smooth a crawl text (horizontal)?
on May 22, 2020 at 5:30:51 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
http://www.CrewsCreative.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Return to posts index

Andrei Popa
Re: Expression to smooth a crawl text (horizontal)?
on May 22, 2020 at 6:44:07 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.


Return to posts index

David Crews
Re: Expression to smooth a crawl text (horizontal)?
on May 22, 2020 at 3:17:32 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
http://www.CrewsCreative.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]