Activity › Forums › Adobe After Effects › Text Inertia
-
Text Inertia
Posted by Cesar Smith on April 26, 2013 at 2:45 amHow can I make my text slide from right to left and then it stops and shakes left right alot to a little, thanks
Cassius Marques replied 13 years ago 4 Members · 5 Replies -
5 Replies
-
Joseph W. bourke
April 26, 2013 at 3:10 amWell…you can either keyframe it by hand, or purchase a script which does the job:
https://aescripts.com/ease-and-wizz/
You could also do it with expressions:
https://www.motionscript.com/expressions-lab-ae65/table-of-contents.html
Joe Bourke
Owner/Creative Director
Bourke Media
http://www.bourkemedia.com -
Cassius Marques
April 26, 2013 at 12:52 pmor paste the following code into your position expression (you can change the “5’s” in each parameter to change the effect’s behavior). Then animate two keyframes.
amorti = 5;
freq = 5;if (numKeys > 1 && freq != 0 ){
if (nearestKey(time).index == 1) { value }
else {if (length(velocity) == 0) {
tempsClefProx = nearestKey(time).time;
if ( tempsClefProx <= time ) { tempsDebut = tempsClefProx }
else { tempsDebut = key(nearestKey(time).index-1).time }temps = time - tempsDebut;
spring = velocityAtTime(tempsDebut-thisComp.frameDuration) * ( .15/freq * Math.sin(freq * temps * 2 * Math.PI) / Math.exp( temps * amorti ) );
valueAtTime(tempsDebut) + spring;
}
else { value }
}
}
else { value } -
Ridley Walker
April 26, 2013 at 3:34 pmYou can download this preset which applies the expression automatically:
https://mattrunks.com/en/tutorials/after-effects/amortype
Be sure to watch the video tutorial first so you can see how it is used.
The expression above is from this preset, notice that the variable names are in French (eg: tempsDebut for start time), the language of its author Mathias Peresini aka Mattrunks.
-
Cassius Marques
April 26, 2013 at 5:05 pmYou can alt click the stopwatch simbol in the selected property to enable them. You can then later save that animation as a preset so you can apply it like you would apply an effect…
keep in mind that the same code there works as well with scale.
Reply to this Discussion! Login or Sign Up