Hey dude, thanks for the reply!
I was trying to use sourceRectAtTime().left to find the left most edge of the text layer but I can’t tell if its even returning the correct value. I tried sending that value to the source text so that I could see it but the value never changes when I move or otherwise modify the layer.
Am I using sourceRectAtTime().left wrong?
W = (sourceRectAtTime().width /1920)*100; /// the width of the object ///
L = (sourceRectAtTime().left /1920)*100; /// distance to left side ///
R = (W + L); /// distance to right side ///
AnimateInTime = thisComp.frameDuration * effect("Animate In+Out - frames")("Fade In Duration (frames)");
AnimateOutTime = thisComp.frameDuration * effect("Animate In+Out - frames")("Fade Out Duration (frames)");
AnimateInCompletion = linear(time, inPoint, inPoint+AnimateInTime+0.001, 0, 100);
AnimateOutCompletion = linear(time, outPoint-AnimateOutTime-0.001, outPoint, 100, 0);
C = (AnimateInCompletion * AnimateOutCompletion) / 100;
linear(C, 0, 100, 100, 0);