Create a Typewriter Animation with Blinking Cursor in After Effects | After Effects Tutorial

Create a Typewriter Animation with Blinking Cursor in After Effects | After Effects Tutorial

MotionHub

5 лет назад

125,899 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sachinbs
@sachinbs - 27.05.2021 13:33

Wonderful tutorial, very helpful Thanks a lot ! Would this respect the Text format (say if one word in the sentence is bold and rest are normal).. is there a way to achieve this?

Ответить
@stilldrunkenest
@stilldrunkenest - 28.05.2021 04:17

This little video was EXACTLY what I needed

Ответить
@ezzong
@ezzong - 14.06.2021 13:11

what version of AE is this? CS6 or CC?

Ответить
@lonecreature7
@lonecreature7 - 21.06.2021 06:01

any codes to get blink cursors at both start and end?

Ответить
@ayham.alali.11
@ayham.alali.11 - 26.06.2021 11:06

Thanks for this helpful video. I have made a small modifcations in case someone liked to use it

This code supports any layer beginning time, that means if your layer is not at the beginning of the comp it will work as expected
Also, it adds keepBlinkingAtTheEnd feature which makes your code even more epic and you can toggle that


// CursorBlinkingTextWriter effect
// Quick modifications by: Ayham Al-Ali
// Original Author: MotionHub

// Notes:
// You need to add 3 SliderControle effects to your layer and 1 checkboxControl
// Name them Speed, BlinkingSpeed, StartAt, CursorKeepsBlinking (checkbox)
// StartAt = time before the text begins to type (cursor will be blinking while that time)
// BlinkingSpeed = Cursor blinking speed
// Speed = text typing speed (makes it longer or shorter in time)
// CursorKeepsBlinking = Keeps blinking after text typing is done?

T1 = time - startTime // If the layer is moved forward this will take care of it
X = text.sourceText;
F = Math.round(T1 * effect("BlinkingSpeed")("Slider") % 1);
L = X.length;
T = T1 * effect("Speed")("Slider") - effect("StartAt")("Slider") * effect("Speed")("Slider");

CursorChar = "|"; // Cursor character
CursorKeepsBlinking = effect("CursorKeepsBlinking")("Checkbox") == 1;

Cursor = " ";
if (F==1 | T>0) Cursor = CursorChar;
if (T>=L) {
if (CursorKeepsBlinking) {
if (F == 1) {

if (Cursor == CursorChar)
Cursor = " ";
else
Cursor = CursorChar;
}
}
else
Cursor = " ";
}
if (T>0) X.substr(0,T) + Cursor
else Cursor

Ответить
@hoseinaura1
@hoseinaura1 - 01.07.2021 01:01

Hey man, thanks for the great tutorial, quick question, I'm typing in Farsi and it goes from left to write, with this expression the cursor falls behind the words, is there a quick fix to make the cursor go in from of the words?

Ответить
@matthewbal8271
@matthewbal8271 - 24.07.2021 19:17

You, my good sir, are a rare gem. Thanks!

Ответить
@0_everything_0
@0_everything_0 - 05.08.2021 21:15

Great tutorial! This clip is really helpful :)
What if I want to pause typing in the mid-sentence and continue typing after a few seconds?
I tried to the comments below, similar to my question, but it didn't works..

Ответить
@mohammedolaywat5010
@mohammedolaywat5010 - 07.08.2021 21:58

how to write from right to left

Ответить
@sarahmfarmer
@sarahmfarmer - 26.08.2021 11:07

Thanks for this!! I tweaked it a little to make the cursor blinking at the start as standard with the text start time adjustable after that, and so you can move the start of the layer with the start offset not being affected (I was finding if the layer didn't start at 0 I had to do some funky maths to work out the offset) but I wouldn't have done it without your starting place. The code is here if anyone wants:

//copy from here

var blinkSpeed = effect("Blinking Speed")("Slider");
var speed = effect("Speed")("Slider");
var startAt = effect("Layer start offset")("Slider"); // put all these on the text layer for individual control, or hook up to a global control on an adjustment layer as in video

var S = inPoint;
var textStart = S + startAt;

var X = text.sourceText;
var F = Math.round(time * blinkSpeed % 1);
var T = time * speed - textStart * speed;


//this bit makes the cursor blink
a = F%2;
if (a != 0 ) Cursor = "_";
if (a == 0) Cursor = " ";

if (T>0) X.substr(0,T) + Cursor;
else Cursor;

Ответить
@yrnorah
@yrnorah - 26.08.2021 20:14

thank you so much!

Ответить
@kkdesigntv5766
@kkdesigntv5766 - 16.09.2021 13:57

Thank you :-)

Ответить
@EvanFB
@EvanFB - 23.09.2021 18:42

What if you wanted the cursor to pause to match the timing of captions or narration?

Ответить
@wildsoul7902
@wildsoul7902 - 24.09.2021 21:47

how to change only blinking bar font

Ответить
@Kriishvj
@Kriishvj - 01.10.2021 07:33

can i move any shape object with that blinking Cursor. please help. 🥺🥺🥺

Ответить
@lifeofameji
@lifeofameji - 13.10.2021 02:49

I keep having an error at the cursor section of the code:
If (T>0) Cursor=

Ответить
@Denis-qe6sn
@Denis-qe6sn - 22.10.2021 16:56

ti amo

Ответить
@sevaaliyeva1649
@sevaaliyeva1649 - 10.11.2021 17:32

does anyone know how to change effect’s name to speed?

Ответить
@ScottGelber
@ScottGelber - 19.11.2021 19:50

glass of water might help. the mouthsounds eek

Ответить
@ronalsantaso
@ronalsantaso - 20.11.2021 17:48

Amazing video, thank you so much

Ответить
@paulbeeley6210
@paulbeeley6210 - 25.11.2021 16:30

Didn't think this would work, but it does!!! Awesome Tut, Thanks :-)

Ответить
@josephjimenez7629
@josephjimenez7629 - 27.11.2021 01:33

how could I purchase a template(ae)? How can I be in touch with you?

Ответить
@antonnishan109
@antonnishan109 - 01.12.2021 17:10

Thank you

Ответить
@avatary5388
@avatary5388 - 19.12.2021 15:50

good video!

Ответить
@justinbrinkmeyer2414
@justinbrinkmeyer2414 - 04.02.2022 00:25

Is it possible to change the color of the text? Ideally, some text is one color and some another (like to show code)

Ответить
@clarrrot
@clarrrot - 08.02.2022 11:23

This is an insanely good tutorial! Also can I ask anyone here should I want the cursor to type backwards, how do i do that? (The text flushed right and start from right)
Bless and tq!

Ответить
@andhikasoendoro3879
@andhikasoendoro3879 - 14.02.2022 07:40

great tutorial! so simple and clear explanation. thank u so much. Can we make the blinking stays (keep blinking) at the end ?

Ответить
@JGAbstract
@JGAbstract - 05.03.2022 01:50

How do you learn this? Its mind blowing to me how people that make tutorials know how to do this stuff, especially with expressions. Blows my mind. Thank you

Ответить
@emilyresch9023
@emilyresch9023 - 20.04.2022 00:40

thank you!!!! this was so helpful and worked perfectly

Ответить
@zirinnori6597
@zirinnori6597 - 22.04.2022 19:12

how to make it stopw typing for a while?

Ответить
@andrearusky
@andrearusky - 05.05.2022 12:48

what if you want to keep the cursor blinking after the text is completed? Cos now, the cursor disappear as soon as the text is typed out

Ответить
@doria5314
@doria5314 - 15.06.2022 07:39

if i want it to stay and keep blinking after I finish playing out the text what do i do?

Ответить
@moonzestate
@moonzestate - 26.07.2022 16:00

Awesome tutorial bro! I've instantly liked and subscribed, thank you so much!

Ответить
@seralee6087
@seralee6087 - 16.08.2022 19:54

thank you this really helps me a lot

Ответить
@nikilynndelgallo
@nikilynndelgallo - 12.09.2022 21:41

is there a way to make the slider and text move forward and then backward to create an effect as if you are typing then erasing and retyping

Ответить
@kaibe5241
@kaibe5241 - 12.10.2022 14:31

Now how would I do this for lots of different texts at different parts of the video/clip?

Ответить
@vitormedeirosmunizhe352
@vitormedeirosmunizhe352 - 21.10.2022 20:20

Really nice!! Thankss

Ответить
@nickcox8386
@nickcox8386 - 24.11.2022 18:21

Hey, great video! Super helpful! Do you or anybody know how to change the code so that it looks like you're deleting the word not typing it? thanks

Ответить
@wakeup2.369
@wakeup2.369 - 13.12.2022 16:54

it turned out, but how to add a cursor color change in the expression?? How do I add a color change for individual words of the text?

Ответить
@bacalao_light
@bacalao_light - 23.12.2022 20:55

MEGA video!! Thanks for sharing!!

Ответить
@motionhubacademy
@motionhubacademy - 23.01.2023 07:16

X = text.sourceText;
F = Math.round(time * Speed % 1);
L = X.length;
T = time * Speed - StartAt * Speed;

Cursor = " ";
if (F==1 | T>0) Cursor = "|";
if (T>=L) Cursor = " ";
if (T>0) X.substr(0,T) + Cursor
else Cursor

Ответить
@Rafanismos_
@Rafanismos_ - 24.01.2023 18:19

So good!!! I was searching something like this make a lot of time. Thank you!!!!!

Ответить
@slavomierg
@slavomierg - 06.06.2023 17:47

Here is a script to keep cursor blinking after the animation ends

X = text.sourceText;
F = Math.round(time * Speed % 1);
L = X.length;
T = time * Speed - StartAt * Speed;

Cursor = " ";
if (F==1 | T>0) Cursor = "|";
if (T>=L & F==0) Cursor = " ";
if (T>=L & F==1) Cursor = "|";
if (T>0) X.substr(0,T) + Cursor
else Cursor

Ответить
@MaximeLavoie-e8y
@MaximeLavoie-e8y - 16.08.2023 03:17

Thank you so much for this tutorial, it helped me a lot! I have a little question though : what if I want the cursor to stay there and blink and the end of my text?

Ответить
@anang7300
@anang7300 - 27.08.2023 23:02

Thank you so much for this.

Ответить
@ĐặngVănDũng-r8b
@ĐặngVănDũng-r8b - 09.11.2023 07:17

Help!
I want to change the Cursor color, how can I do that?

Ответить
@stellaly
@stellaly - 04.12.2024 09:01

Thanks 🙏

Ответить