Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions attach slider to loop

  • attach slider to loop

    Posted by Jack Parks on November 12, 2008 at 5:50 pm

    Hello,

    I have set up several keyframed animations with 3 keyframes and a loop expression,
    is it possible to attach these to a slider,
    which as the slider value increases it would increase the frequency of the loop,
    and maybe loop backwards if a negative value is input.

    Thanks

    [I thought I saw a post doing this a while back but can’t find it].

    Jack Parks replied 17 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 12, 2008 at 7:16 pm

    It’s tricky, but something like this can work if you don’t make drastic changes to the slider:

    spd =effect(“speed”)(“Slider”) ;

    if (numKeys > 0 && time >= key(1).time){
    dur = key(numKeys).time – key(1).time;
    t = key(1).time + ((time – key(1).time)*spd)%dur;
    }else{
    t = time;
    }
    valueAtTime(t)

    Dan

  • Jack Parks

    November 13, 2008 at 10:30 am

    Thanks, I’ll give it a try.

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