-
Can you automatically ease transition between 2 values in a Position Array?
Hi
I have an animation, where a number of rows in a table is highlighted by a separate layer with a Blending Mode. To do this manually, it is a bit tedious, as I have to time it with a voiceover – start keyframe, add new keyframe, set another hold keyframe, add new keyframe and so on.
It is easy, but I have to deal with lot’s of keyframes.
Ideally, I would like to set a keyframe, when I want the highlight to move to a new position. I would like the expression to ease the transition from previous position to current one.
My current solution is to do this with a slider and a position array, like this:
//Define position values posOptions = [320, 360, 400, 440, 480]; //Slider to select position from array rowSelect = thisLayer("Effects")("rowSelect")("Slider"); //Round down slider values and select relevant item from an array newY = posOptions[Math.round(rowSelect)]; //Final position [960,newY];It works fine, but highlight layer jumps to next position without any ease, due to Math.round function. But without this function, the whole thing does not work.
Is there a way for expressions to automatically ease between 2 keyframes and hold the value until next keyframe is created? For example, stay on 1st keyframe, until 10 frames before 2nd keyframe – then ease the transition?