Stop loopOut

StopTime = 6;
if (time>StopTime) {
thisProperty.key(numKeys).value;
} else {
loopOut("pingpong");
}

Copy and paste the expression above into the property you would like to add the loopOut() expression to.

Simply change the “6” at the end of the first line to your desired stop time. This number indicates seconds, rather than frames.

Rather than the standard loopOut expression, which will just loop forever, this expression gives us the ability to stop loop when we choose!

Keep in mind that when your stop time is reached, it is the first keyframe that it will freeze on, so make sure your stop time is the end of a loop!


Previous
Previous

Trigger Keyframes

Next
Next

Maintain Scale in 3D Space