Answered
expression linear functionc
Hello, I'd like to increase my opacity to 80% and then decrease it from 80% to 0% in the following linear function.
driver=thisComp.layer("Sun").transform.position[0]
SunMin=-180;
SunMax=2076;
SkyMin=0;
SkyMax=80;
if (driver<=2076){
driver=Math.abs(driver)
}
x=linear(driver,SunMin,SunMax,SkyMin,SkyMax);
I think I need to use a condition. I've tried with the x position so that at a certain distance the opacity reverses, but without success :/. Can anyone help me?
