-
Start Linear Expression at certain time, play it once and hold at end result
Hi!
I’m trying to get a linear expression to play (typing on text) when one value equals another.
So, in my expression, I want the animation to start at the frame where x is equal to y. Then play it through once and hold it at the end result for the rest of the comp.
Here’s what I’ve got so far:
x = thisComp.layer("Text").effect("Type_on")("Slider").valueAtTime(time);
y = thisComp.layer("Text").text.sourceText.length;
z = timeToFrames(time)
length = text.sourceText.length;
typeOn = linear(time, x == y, (x == y)+1, 0, length);
Not too sure how to proceed. Obviously the time brackets of the linear field is wrong but I left it in to give an idea of what I’m trying to do.
Thanks in advance for any help 🙂