Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Eden Exposito on June 26, 2009 at 4:21 pm

    Hi!
    I want animate position of an object and after 2 second holding stopped make a loopOut(“offset”) but i can not hold this loopOut, if i put this code:

    if (time>2){
    loopOut(“offset”)
    }else{
    value}

    the position “jump”, is like loopOut was running from last frame and suddenly appear moving position propierty… i want avoid this jump and link loopout from the last animated key but holding a time before loopout start…

    Thanks!

    Darby Edelen replied 17 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Darby Edelen

    June 26, 2009 at 9:30 pm

    I’m a little confused about what you’re trying to do.

    If you don’t want the animation to begin for the first 2 seconds then you just need to avoid putting any keyframes in the first 2 seconds.

    If you want to animate your object freely for the first 2 seconds then have it loop the remainder of the animation you need to use the second argument to loopOut(); which allows you to specify which keyframes to loop. If you have 3 keyframes on a property, for example:

    loopOut("offset", 1);

    will only loop between the last keyframe and the keyframe before (1) the last keyframe, where as:

    loopOut("offset", 2);

    will loop between the last keyframe and the 2nd keyframe before (2) the last keyframe.

    So you can create as many keyframes as you want before the 2 second mark, then count back from your last keyframe (which is keyframe ‘0’) to the keyframe at 2 seconds and enter that value in the second argument.

    If you want the animation to loop, but the object to stop for 2 seconds before it begins another loop then you need to make your last keyframe a hold keyframe, then add another keyframe 2 seconds later.

    Darby Edelen

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