Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scale expression edit

  • Scale expression edit

    Posted by Jacob Jones on October 28, 2019 at 1:44 pm

    Hello to everyone. This is my first message. I will be very happy if you help.

    I have the code below. however, I want the start time to be determined automatically based on the start time of the text layer. I want the end time to be 20 to 25 periods after the start time. And I want to apply the opposite at the end.

    rampStart = 0;
    rampEnd = 1;
    startVal = [0,0];
    maxVal = [100,100];

    rampMid = rampEnd;
    if (time < rampStart || time > rampEnd){
    value
    }else if (time < rampMid){
    ease(time,rampStart,rampMid,startVal, maxVal)
    }else{
    ease(time,rampMid,rampEnd,maxVal,startVal)
    }

    Andrei Popa replied 6 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    October 30, 2019 at 9:59 am

    Just change the value between parenthesis on row one to change duration:

    myDuration = framesToTime(20);
    startVal = [0,0];
    endVal = [100,100];

    if (time < inPoint+myDuration){
    ease(time,inPoint, inPoint+myDuration, startVal, endVal)
    }else if (time > outPoint - myDuration){
    ease(time, outPoint - myDuration, outPoint, endVal, startVal)
    }else value

    Andrei
    My Envato portfolio.

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