Thanks for your suggestion, Dan, but I don’t think it will help. I`ll try to explane the purpose of my expressions.
I have keyframe cycle which is controlled in time by this part
valueAtTime((thisComp.layer(“Jim_auto_body”).effect(“Morpher”)(1)-thisComp.displayStartTime/thisComp.frameDuration)*thisComp.frameDuration);
may be you know what is Duik and its function named “morpher”. I think you should be familiar with it, but if not – it is here https://rainboxprod.coop/fr/outils/duik/
anyway this last part should be kept as is, no changes here.
This part
x=thisComp.layer(“Jim_main_ctrlr”).effect(“step_height_correction”)(“Slider”);
y=key(3).value
value=(value-y)*x+y;
controlling the values of keyframes, but the way to keep 3rd key unaltered. These two parts have to control different aspects of actual parameter – value and time. Thus it’s pointless to merge it in one formula. I need two expressions to work here.