• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Typewriting with random speed

Explorer ,
Feb 11, 2017 Feb 11, 2017

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é

Views

2.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 11, 2017 Feb 11, 2017

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

Votes

Translate

Translate
LEGEND ,
Feb 11, 2017 Feb 11, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2017 Feb 11, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 12, 2017 Feb 12, 2017

Copy link to clipboard

Copied

Thanks!! Exactly what I was looking for.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2017 Feb 12, 2017

Copy link to clipboard

Copied

Great! please mark the answer as correct so that others can find it quickly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 08, 2021 Apr 08, 2021

Copy link to clipboard

Copied

LATEST

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 04, 2018 Apr 04, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines