Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animate position 10 pixels at a time

  • Animate position 10 pixels at a time

    Posted by Jason Jantzen on January 6, 2012 at 5:38 am

    I’m trying to move a text layer in the Y position 10 pixels at a time as tho the line is moving down like on a computer terminal. I’ve got it keyframed to move up, but want to get rid of the smooth motion and simulate the old terminal text look.

    Jason Jantzen replied 14 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 6, 2012 at 2:29 pm

    Probably something like this:

    y = Math.floor(value[1]/10)*10;
    [value[0],y]

    Dan

  • Jason Jantzen

    January 6, 2012 at 3:27 pm

    Oh man you’re a life saver. After watching a few other scripts do similar motion, I figured it had something to do with the Math.floor thing. I was looking around the net for over an hour (including the Cow and your site) trying to figure this one out last night.

    I did figure out the speed on your expression. Thanks a million Dan.

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