Hey. Even though i don’t fully understand the expressions from the text animator(they seem odd to me, compared to the ordinary ones), i came up with this. I am sure it can be somehow simplified, but it ain’t stupid if it works, right?
I add a text animator for position, set it to aproximately half the width of the comp plus the width of my text layer.
add expression selector, based on lines, with this expression:
thisSign = (textIndex%2 == 0) ? 1 : -1;
dur = 5;
thisTime = Math.max(framesToTime(dur) - (time-inPoint),0);
val = linear(thisTime,0,framesToTime(dur),0,1)*100;
thisSign *val
I tried to determine a way to make 0-100 within my duration and then i added a + or – sign to make it go the other way.
Andrei
My Envato portfolio.