-
Expression is happening before it’s supposed to
An expression I applied to the opacity in one layer is happening several frames before the layer even begins.
It’s a very simple expression that fades the layer in and out using its n and out points. The same expression is applied on 4 other layers in the same comp and it works fine, but this one kicks in 19 frames before it’s supposed to.
This is the code:
topVal=100
fadeDur = thisComp.layer(“xp”).effect(“fade”)(“Slider”);
if (time < (inPoint+outPoint)/2)
ease(time,inPoint,inPoint+fadeDur,0,topVal)
else
ease(time,outPoint-fadeDur,outPoint,topVal,0)
Any help is appreciated.