Forums › Adobe After Effects Expressions › How to animate in point and out point of layer with expressions?
How to animate in point and out point of layer with expressions?
mehmet turhan
January 23, 2021 at 2:08 pmI’m trying to animate the in opacity and out opacity of a layer with just an expression
linear(time,inPoint, inPoint+.5, 0, 100)
linear(time,outPoint+.5, outPoint, 100, 0)
This is what I did. It seems the second line always overwrites the first one. How would you animate layer appearing with opacity and disappearing with opacity with just expressions?
Filip Vandueren
January 23, 2021 at 8:17 pmif (time <= inPoint+0.5) {
output = linear(time,inPoint, inPoint+.5, 0, 100);
} else {
output = linear(time,outPoint+.5, outPoint, 100, 0);
}
output;Othman Ahmed
January 23, 2021 at 9:44 pmSimple modification.
<pre data-placeholder=””>
if (time <= inPoint+0.5) { output = linear(time,inPoint, inPoint+.5, 0, 100);
} else {
output = linear(time,outPoint-.5, outPoint, 100, 0); // just replace + with –
}
output;
mehmet turhan
January 24, 2021 at 2:16 pmThanks! It makes sense and worked perfectly!
Viewing 1 - 4 of 4 posts
Log in to reply.