Copy link to clipboard
Copied
Hi,
I would like to make a typewriting with random speed. Meaning it should look more natural as if someone really would type.
I can imagine different approaches, but don't know how to realize any of them.
- Make a composition with a linear increase of the typewriting and then randomize the speed of that composition.
- randomize the keyframes of the writing, but anyhow always increasing
- make the typing stop and go on randomly over time.
??
thanks for help!
rené
try using this expression for the source text, no need for using the typewriter preset.
adjust the min rate and max rate to taste. I find it o.k
minRate = 3; // frames per character
maxRate = 6;
charCount = 0;
t = 0;
seedRandom(index,true);
while (t < time){
charCount++;
t += framesToTime(random(minRate,maxRate));
}
value.substr(0,charCount)
courtesy of Dan Ebberts from this thread: https://forums.creativecow.net/thread/227/24676
more about creating random calculations in an accumulating manner, here: Random Motion
Copy link to clipboard
Copied
try using this expression for the source text, no need for using the typewriter preset.
adjust the min rate and max rate to taste. I find it o.k
minRate = 3; // frames per character
maxRate = 6;
charCount = 0;
t = 0;
seedRandom(index,true);
while (t < time){
charCount++;
t += framesToTime(random(minRate,maxRate));
}
value.substr(0,charCount)
courtesy of Dan Ebberts from this thread: https://forums.creativecow.net/thread/227/24676
more about creating random calculations in an accumulating manner, here: Random Motion
Copy link to clipboard
Copied
Dan is the master. The trick is the java function ++ which accumulates values. This is necessary because if you were to try and write an expression that looked back at all of the previous frames to prevent the effect from going back and forth you would end up with recursive calculations that would progressively slow down AE and quickly grind your rendering to a stop.
Thanks Roei.. I was about to post the same expression. I have it, modified with sliders to control the min and max frames as an animation preset saved in my Custom Animation Presets folder under Time...
And thanks to Dan for his incomparable contribution to the AE community.
Copy link to clipboard
Copied
Thanks!! Exactly what I was looking for.
Copy link to clipboard
Copied
Great! please mark the answer as correct so that others can find it quickly.
Copy link to clipboard
Copied
this is fantastic, but I need it to type left to right, and go faster. I have tried adjusting the code in a few places with no luck. Is there a way to do that?
Thank You-
Dave
Copy link to clipboard
Copied
Any reason this would force text to animate Right to left? I can't seem to get it to animate Left to Right.
Thanks