-
Custom ease via an Expression or copy ease from keyframes to expression
Hi there,
I want to automate the Position of a Text Layer via markers.
That already works via the expression belowBut instead of easeOut i want a custom ease.
I already have the ease i want on some keyframes, but is t here a way to convert that specific ease into an expression i could then use here instead of easeOut ?
Or reference these keyframes in the expression and let the expression only use the ease of these keyframes.
Is that possible ?Any help is appreciated! Thank you :)!
zeit = framesToTime(20,25)
sx = 62.25; // slide distance
sd = zeit; // slide durationm = thisLayer.marker;
y = 0;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (time < m.key(n).time) n--;
if (n > 0){
t = time - m.key(n).time;
y = easeOut(t,0,sd,(n-1)*sx,n*sx);
}
}
value + [0,-y]