-
Can anyone fix this expression for me?
I’m trying to apply this expression to the position property of a Transform effect applied to a layer.
I only want my expression to affect the X value, and not the Y.
I have to apply it to a Transform effect rather than the native position of the layer as I want to be able to switch the animation on and off with the effect opacity in the compositing options.
Where am I going wrong?
d=thisComp.layer(“CONTROL”).effect(“Animation”)(“Duration”);
xP=thisComp.layer(“CONTROL”).effect(“Text”)(“X Position”);
yP=thisComp.layer(“CONTROL”).effect(“Text”)(“Y Position”);x=if (time < d) easeOut(time,inPoint,inPoint+d,-542,xP) else easeIn(time,outPoint-d,outPoint,xP,-542) [x[0],value[1]]