Forum Replies Created

  • Luis Merino

    July 13, 2018 at 4:41 pm in reply to: loopOut pingpong doesn’t work on a mask shape?

    Hello,
    I have a big question!

    I’m trying to loop a path but i want the loop to be “Pingpong” after the first keyframe.
    According to what I’ve read, this is the expression for looping paths but it only works for cycle loop.

    Is there any way to make it work as a pingpong loop?

    if (numKeys >1 && time > key(numKeys).time){
    t1 = key(1).time;
    t2 = key(numKeys).time;
    span = t2 - t1;
    delta = time - t2;
    t = delta%span;
    valueAtTime(t1 + t)
    }else
    value

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