Hi Chris,
try this ☺
Animation IN and OUT in the same way…
startMarkerIn = thisComp.layer(„NAME“).marker.key(1).time;
endMarkerIn = thisComp.layer("NAME").marker.key(2).time;
startMarkerOut = thisComp.layer("NAME").marker.key(3).time;
endMarkerOut = thisComp.layer("NAME").marker.key(4).time;
a = [OutPosition]
b = [InPosition] - [OutPosition]
InPosition = thisComp.layer("NAME").transform.position;
OutPosition = thisComp.layer("NAME").transform.position;
ease(time, startMarkerIn, endMarkerIn, (a/2)+b,(a/2)) + ease(time, startMarkerOut, endMarkerOut, (a/2), (a/2)+b);