Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions layer jump to grid

  • layer jump to grid

    Posted by Tyler Paul on July 25, 2008 at 1:00 pm

    I’m trying to make a layer jump to points on a grid. They layer should hold it’s location until the keyframes have animated it 20 pixels left right up or down. Then it’ll jump to the new location and hold there.

    Math.round keeps the location to whole numbers and I could animate the object in a small space and the multiply the position by 20. Is there a better way?

    Tyler Paul replied 17 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Tyler Paul

    July 25, 2008 at 1:03 pm

    and as a follow up question, I’d like to be able to say the grid is 20 by 20 based on the comp size. Although I think I’ll be able to figure that out using Dan’s grid expression

    * * *
    “Life Should Come With Backround Music”

    -Brown Sugar Studios-

  • Dan Ebberts

    July 25, 2008 at 3:43 pm

    Play around with this:

    [Math.floor(value[0]/20),Math.floor(value[1]/20)]*20

    Dan

  • Tyler Paul

    July 26, 2008 at 10:09 pm

    Well isn’t that nifty.

    THANKS

    * * *
    “Life Should Come With Backround Music”

    -Brown Sugar Studios-

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