Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects repeat keyframes, not cycle. jumping across the screen. move 20 pause, +20, +20 etc.

  • repeat keyframes, not cycle. jumping across the screen. move 20 pause, +20, +20 etc.

    Posted by Scott G on November 30, 2005 at 9:30 am

    hey guys,

    can someone point me in the right direction? i want to repeat some keyframes, rather than cycle, if that makes sense. ie, if i tell something to move right 20pixels, then pause, i want it to move again after the pause ANOTHER 20 pixels right, without having to set keyframes for the entire length of my comp. ie, it jumps, then takes its current position as the new starting point for the next jump.

    not being a javascript whizz, i’m not sure what i need to be doing to achieve this… is it even possible?

    thanks!
    scott.

    Steve Roberts replied 20 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Steve Roberts

    November 30, 2005 at 11:39 am

    To do exactly what you describe in three keyframes and one expression:

    1. set first position keyframe
    2. move ahead in time, set next position keyframe 20 pixels to the right
    3. make that keyframe a hold keyframe
    4. move ahead in time, set a keyframe without changing position
    5. apply this expression to the position property:

    loopOut(type = “offset”, numKeyframes = 0)

    … and the object should move, pause, move, pause, move across the comp.

    To see the expression-influenced value graph for the motion, click the first little square button (of three) in the timeline next to the expression. That should confirm the pattern of the motion.

    (In other situations “continue” can be used instead of “offset”, but with “continue”, you’d leave out the “numkeyframes=0” stuff.)

    Hope that helps,
    Steve

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