Control two (X-)position keyframes while keeping the (temporal) interpolation
Hi, I'm a little bit new to expressions. After hours of googling trying and coding I gave up and try to get some help here.
I just want to keep my simple animation with the temporal interpolation. I only want to change with two sliders two keyframes. Is that somehow possible?? I found much codes for scale, opacity, and also some for position but none of these work for me ![]()

Thank you very much!!! I'd very happy if anyone could also explain the expressions to me!
Here are some of my tries:
{
slider = key(1);
t2 = key(2);
t3 = key(3);
t4 = key(4);
slider = comp("Comp 1").layer("txtlayer").effect("Keyframe Slider 1")("Slider");
slider2 = comp("Comp 1").layer("txtlayer").effect("Keyframe Slider 2")("Slider");
t1 = [slider];
t2 = 960 = t3;
t4 = [slieder2];
}
// other expression now
if (numKeys > 1){
t1 = key(1).time;
t2 = key(2).time;
t3 = key(3);
t4 = key(4);
slider = comp("Comp 1").layer("txtlayer").effect("Keyframe Slider 1")("Slider");
linear(time,slider,t2,t3,t4);
}else
valueAtTime(t);