-
I know I’m missing something simple – Opacity Controlled by Slider Trigger
I have a text layer with a slider control that controls the Source Text over time (say 1 min) from 1975 to 2016. I have an object with an in point at the same time as the text layer. I want the opacity to be 0 until the slider control is greater than or equal to 1980, at which point I want the opacity to change from 0 to 100 over 1 second.
I can get it to stay 0 until the slider reaches 1980, but then it jumps to 100% the next frame. I’m sure the problem is with the second and third argument with linear(). I’m sure it’s simple, but I’ve been beating my head against the wall and I’m starting to bleed. Please help.
This is the code:
Thanks!
opacityMin = 0;
opacityMax = 100;
slider = Math.round(thisComp.layer("1975").effect("Slider Control")("Slider"));
date = 1980;
animateIn = linear(time, time, time+1, opacityMin, opacityMax);
if(slider >= date) {animateIn} else {0}