Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions oscillation expression stops after one cycle

  • oscillation expression stops after one cycle

    Posted by John Bartmann on August 21, 2013 at 9:07 am

    it’s help-a-noob day. i have a simple z-rotation oscillation expression on a layer:

    from = 45; //one end of your oscillation
    to = -45; //the other end of your oscillation
    period = .58; //time between oscillation points (multiply by 2 for a round trip)
    t = time % (period * 2);
    if (t > period) t = 2 * period – t;
    linear(t, 0, period, from, to)

    in the layer comp, it repeats indefinitely, but in the main comp layer, the layer disappears after one cycle. i want it to repeat indefinitely. any thoughts?

    from = 45; //one end of your oscillation
    to = -45; //the other end of your oscillation
    period = .58; //time between oscillation points (multiply by 2 for a round trip)
    t = time % (period * 2);
    if (t > period) t = 2 * period - t;
    linear(t, 0, period, from, to)

    John Bartmann replied 13 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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