Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Add 30px to position every X frames

  • Add 30px to position every X frames

    Posted by Javier Gil on January 1, 2017 at 11:06 pm

    Hello everybody!

    I have a shape in a comp with no keyframes in it’s position, and I want to add 30px (for example) to the PositionY value every 3 (for example again) frames.

    I’m sure there’s an expression to do that, but after hours looking for it I can´t figure it out!

    Thank you very much in advance!

    JG

    Javier Gil replied 9 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 1, 2017 at 11:50 pm

    Something like this:

    y = Math.floor(timeToFrames(time)/3)*30;
    value + [0,y]

    Dan

  • Javier Gil

    January 2, 2017 at 1:21 am

    That’s exactly what I need, thank you very very much!

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