Join Eran Stern for an in-depth discussion in this video Add computer code animation, part of After Effects Guru: Integrating Type into Video.
- Anytime you are adding graphics to your footage, you should always check to see how you can create a sense of depth to the scene. You can do that by separating elements from the video and place them above or below the graphics. Here in this case we have the footage of a lady which was shown against the black background. Before we introduce the type and the graphical elements, I want to key out the black and put some computer code in front and underneath the video.
So just to remind you where we are, I'm going to come preview again. And you can see that the base video here is this lady who is crossing the screen and touching it in the middle. And we're going to use this as our base for everything. So this is actually going to be the trigger for all the animation. Now we are going to start by decorating the frame with two lines of code that are going to run across the screen. So I'm going to drag and drop code number one, and we're actually going to duplicate it.
So let's just work on this copy and then create another variation from this guy. Let's scale it first, so I'll just press S and let's go with 210. And every time that you are scaling up a vector layer, it's always a good idea to turn on the Continuously Rasterize button which will make After Effects look at the vector files and render a crisp result. Now I'm just going to place it over here.
And then I need to animate it and also colorize it. Let's start with the animation. The easiest way to animate it across the screen is using the offset effect. So just drag it here in the index search and then drag it and drop it on top of the layer. And then we are going to animate the Y Shift. So let's start from maybe over here, where the key frame, then go all the way to the end. And then move it to somewhere over here.
And then let's RAM Preview the result just to check if the paste is good. And I think it is. Now, what I want to do is colorize it. So let's highlight the area of the search and type Fill. And this will help us to fill the alpha information since we are working with Illustrator vector files, we have transparency. I am going to use the Eye Developer and sample the first green that we have over here. It's almost white, but it's a tint of green, just so you know.
Now, I think it's a little bit too strong, so I may want to press T and reduce the opacity to, say, 30%. Now let's do another copy and create some sort of a sandwich between those two guys. So the video will be between them. First, let's duplicate it. And then I'm going to take one of them and change the position to be under the video. Now, currently the video is hiding it, so I'm just going to turn off the eye for it.
And then I'm going to press Speak in order to see position of the second layer. And I'm just going to move it somewhere over here. And let's enlarge it. Let's go with 350. And now we can reposition it by dragging on the X, value of the X slider over here. Now we may also want to change the speed of the offset just so they won't look the same. So I'm going to press U, this will show us the key frame, then I'm going to go to the last key frame.
And I'm just going to change it to some arbitrary number, something like this. It doesn't really have to be perfect size. You need to run preview a few times until you feel that this is the correct speed. I think that's working quite nice. And now let's separate the actor from the background. Since this was shown against the black background, the easiest way to pull this trick is using the extract effect. So, it will wait for you under the Key category, I'm going to double-click in order to apply to do the video footage.
Then I'm going to start and drag the upper square until I create a nice separation from the background. So the value of around 27 for all that black point seems to work fine. And then the lower square will introduce the softness, in this case for the black. So something like 20 in this case. Now, I want the other way around. So I need to switch my code layers. So let's just do that. And this, I think, would look better because it makes more sense that she's entering the screen and hiding the code lines.
And only then she's leaving us and we are going to be left with this layer. So in this case I may want to even reduce the opacity for the bigger lines of code and let's just create another RAM Preview and judge if the result looks fine. And I think it does. So this is how you can add computer code running animation and also create the separation between the foreground and the background, in this case using the Extract Effect.
- Analyzing your shot and making mood, story, and type decisions
- Working with lights, shadows, and 3D animation
- Rotoscoping, distorting, and displacing text
- Creating a motion graphics teaser using parenting and shoot-out animations
- Integrating 3D text into live video
- Working with ray-traced type
- Create advanced per-character 3D text animations