-
Scale in/out – Frames
Hello Creative Cows,
I want to write an expression where my layer scales in and out at the start and end of my Layer Duration just like the “Fade In+Out – frames” from the After Effects Preset Behaviors. So i tooked the expression from the Preset and tried my best. it works but only for in or for the out fade. I know i need to add a last line of code to make them both work. maybe you can give me a hint or the solution
thanks
-alexfadeInDuration = thisComp.frameDuration *effect("Fade In+Out - frames")("Fade In Duration (frames)");
fadeOutDuration = thisComp.frameDuration * effect("Fade In+Out - frames")("Fade Out Duration (frames)");startScale = [0,100];
endScale = [15,100];fadeInScale = ease(time, inPoint, inPoint+fadeInDuration+0.001, startScale, endScale);
fadeOutScale = ease(time, outPoint-fadeOutDuration-0.001, outPoint, endScale, startScale);