Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling Rotation Speed

  • Bhavesh Jadav

    June 21, 2014 at 7:09 am

    I checked expression Dan.
    the post expression graph looks like this

    Well it work for on-ramp start then it stopped rotating.
    I think the graph should look like the post expression speed graph on the motionscript.com.

    The cyan colored graph.
    PS : I changed the value of t1, t2, t3, t4
    here’s the new value
    t1=2
    t2=3
    t3=7
    t4=8

  • Bhavesh Jadav

    June 22, 2014 at 2:17 pm

    Hi Dan,

    It really work well. I was misunderstood & confuse of that graph thing & sorry for that.
    but only one issue that on on-ramp start & off-ramp start it rotates so fast compare to the speed in between on-ramp start & off-ramp start, but that is unnoticeable.
    Thank you very much Dan.

  • Ernestas Cepulionis

    March 3, 2017 at 5:32 am

    Hi,

    I studied math of this expression and I can’t find out why did you divided some values by 2?

    …..
    (t2 – t1)*spd/2
    (t4 – t3)*spd/2;
    (time – t3)*(v+spd)/2;
    (time – t1)*v/2;
    ….

    spd = effect("Slider Control")("Slider");
    t1 = 0; // on-ramp start
    t2 = 1; // on-ramp finish
    t3 = 5; // off-ramp start
    t4 = 6; // off-ramp finish

    if (time > t4){
    accum = (t2 - t1)*spd/2 + (t3 - t2)*spd + (t4 - t3)*spd/2;
    }else if (time > t3){
    v = linear(time,t3,t4,spd,0);
    accum = (t2 - t1)*spd/2 + (t3 - t2)*spd + (time - t3)*(v+spd)/2;
    }else if (time > t2){
    accum = (t2 - t1)*spd/2 + (time - t2)*spd;
    }else if (time > t1){
    v = linear(time,t1,t2,0,spd);
    accum = (time - t1)*v/2;
    }else{
    accum = 0;
    }

    value + accum

Page 2 of 2

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