Combine two ease expressions on Scale property
I'm trying to make a layer scale up at its inPoint and then scale down just before its outPoint. Unfortunately, I'm not a coder, so I have a hard time understanding a lot of the syntax here. I'd love to get this done with just one expression to make everything faster instead of setting the keyframes individually.
I can get the separate expressions to work, so:
ease(time, inPoint, inPoint + 0.5, value * 0, value * 1)makes the image scale up from the time it comes in, and
ease(time, outPoint, outPoint - 0.5, value * 1, value * 0)makes the image scale down just before it disappears.
However, when I try to combine them like this:
if(time<=inPoint){
ease(time, inPoint, inPoint + 0.5, value * 0, value * 1)
}
else{
ease(time, outPoint, outPoint - 0.5, value * 1, value * 0)
}It does the scale up properly, but it ignores the scale down.
If I try to combine them like this:
ease(time, inPoint, inPoint + 0.5, value * 0, value * 1) + ease(time, outPoint, outPoint - 0.5, value * 1, value * 0)It does both scale animations, but the image goes to 200% for the duration it's onscreen until it scales down at the outPoint.
Is there a way to do this with just one expression I can save as a preset?
