Great, thanks…
I found this expression on your website////
point1=this_layer.position;
point2=thisComp.layer(“Text Bar”).transform.scale;
delta=sub(point1, point2);
distance=length(delta);
linear(distance, 0,50, [150,150],[100,100]);
What I am trying to accomplish is as that bar moves past the text layer it moves the layer position 50 pixels on the x axis only and once it passes completely it returns to its original value. So what I came up with is the following however it don’t work. Any help would be appreciated.
point1=this_layer.position;
point2=thisComp.layer(“Text Bar”).transform.position;
x = value =50
delta=sub(point1, point2);
distance=length(delta);
ease(distance, 0,50, [x,[1]],[[0],[1]]);