ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scale expression edit

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jacob Jones
Scale expression edit
on Oct 28, 2019 at 1:44:52 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 &lt; rampStart || time > rampEnd){
}else if (time &lt; rampMid){
ease(time,rampStart,rampMid,startVal, maxVal)

Return to posts index

Andrei Popa
Re: Scale expression edit
on Oct 30, 2019 at 9:59:19 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

My Envato portfolio.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved