Are right now onto one of the funniest parts ever and blender and that is animating.
So I'm sure you've been waiting to get to this part for a while and we're finally here so we are going
to animate our object.
First of all make sure you save your scene control s save your scene and let's move this big glowing
orb or lights this way.
Now we're going to be animating two things here.
Are the animating Suzanne and also are gates opening up.
So it's going to be two little animations and before that we're going to be doing some random little
animations just to get the feel and the hang of it.
So let's go to solid mode but select Suzanne and top view hit seven to go to the top view is what I
mean.
Hit seven to go to the top you on your numpad grab Suzanne and bring her over here.
Rotate our 180 degrees by hitting 180 on your keyboard.
Now how do we animate this monkey head that we have here.
Well the way to animate it is we need to use the time line over here.
Like I said this is our time line and this represents the frames and the animation.
If you scroll through it it goes through the frames as you can see here.
And this is where we're going to be moving our object or where we're going to be dictating to Blendr
where our object is at frame 1 and where it is at frame 50.
So on and so forth.
So the way to do that is first we have to tell Blendr where the monkey head or Suzanne is on frame 1.
So on frame 1.
Let's go ahead and hit I.
And this gives you a menu to answer a keyframe.
You could insert the location the rotation the scaling the location and rotation location and scaling.
Or all three of them.
Location rotation scaling or rotation scale.
Now the most commonly commonly used one is the location rotation and scaling.
This one is use the most.
But let's take a look a little bit on how these work.
So for example if Susanna's right here on frame 1 let's say I want her in this location so I location.
Now you can see there's a yellow keyframe inserted on frame 1 and you can also see it right here.
Frame 5 is white frame one is yellow because there's a keyframe there.
Now if I go to frame 10 I actually go to frame 20 grab Suzanne on the y axis and then hit my location.
Now that just told Blendr that on frame 20 Suzanne needs to be in this location hence the yellow keyframe.
So if I scroll this look at that.
That's pretty awesome.
Frame one frame 20.
Now let's play the animation by hitting the play button and you could see what happens.
You could rewind your animation by hitting this right here or hitting shift left arrow on your keyboard
to rewind it.
That's pretty cool.
We just animated the location of Suzanne.
Now let's animate the scaling of Suzanne.
Let's go to frame 20 and right here let's hit I.
And we have a keyframe for location.
But let's go ahead and add a key Frank frame for the rotation of Suzanne.
So we're talking Blendr that here at frame 20.
We she is going to be rotated this way.
Let's go to frame 40 and hit r to rotate and Z.
I rotate it this way.
Now once again hitting I and then selecting rotation.
Now we're telling Blendr that frame 40 she needs to be rotated this way.
So once again if we scroll through you can see what's happened.
So she moves from here to here and then rotates her head pretty creepy and awesome.
Let's do one more and I'll make it even weirder.
But let's go to frame 60.
And before we do that on frame 40 let's tell blunder that Suzanne is at this size right here.
So I scaling going to frame 50 60 by either clicking on it or going down here and typing 60 and then
hitting I scaling.
So now Blendr knows that frame.
Are we doing a scale Herse of first frame 60.
Let's scale her up with the esky and then hit I.
Scaling.
So now we've told Blendr that Efrem 40 she's a certain size and that's frame 60.
She is going to be scaled up like this.
So take a look at what that looks like.
She moves from here to there rotates and then scales up pretty awesome.
Now those are how to do it individually.
Now to remove a keyframe let's go all the way back to frame 1.
Let's remove all these.
And the way you do that is actually going from 50 just hit all I add or remove a keyframe girlfriend
40 Allt I will remove the key frame and frame 20 or die.
Remove the keyframe.
Let's go back to frame 1 and on frame one right here.
Let's check out the location rotation scale because this is the absolute best way to go about it depending
if you want all three of those.
But for the most part you even if you don't use a scaling or the rotating you could still use that one
and it will take into account whatever changes you made.
So that's why this one is used the most because whatever changes you make to Suzanne it will take into
account if you didn't scale it and you only moved it and rotated it will take that into account and
leave the scaling alone.
Tom Frame one let's hit location rotation scale frame 20.
Let's bring her out.
So let's move her.
Let's rotate her with the R and the Z and let's scale her up with the esky and then hit I location rotation
scale.
Now let's pan through this.
You can see that all three of these were applied as she moves.
She is being scaled and rotated at the same time.
Now you can see it's different than the other one because right now between this frame and this frame
Blendr has put in its Frayne's it's done what is called tweenie.
I believe it's basically filled in the values between here and between this.
So meaning everything in between as it's happening.
It's rotating scaling and moving all at the same time.
It's not getting to here and then scaling and rotating.
It's doing all that in-between.
Now let's say you want it to rotate all at once without it having to rotate as it's moving.
Let's go back to frame 20.
It ought I to remove that keyframe for frame 1 and we go to frame 20.
We could actually move it
and scale it up and then hit I location rotation scale.
Now again we didn't rotate it but since we didn't rotate it it will keep the rotation that originally
was there.
You can see that now as it moves it's moving and scaling at the same time.
And then if you wanted to rotate all of a sudden from this spot you would then go to frame 30 which
are to rotate zijn to rotate on the Z-axis rotate it and then hit by location rotation scale.
Now again we didn't scale it we didn't move it.
We only rotated it but it will take into consideration the previous rotation as the previous scaling
and location.
And so it won't change.
It will only change the scale of the rotation of it.
So location rotation scale is usually the best one to use for the most part.
Depends what you're doing of course because this will make sure that it takes everything into consideration.
But now you can see that if I move it it's moving and scaling up as I go along.
But then it stops here and then the rotation happens from here to here.
Because when I set it from frame 1 to 20 I didn't move the rotation I told Blendr to have the same rotation
from here to here.
But then I told Blendr that ok i frame 20.
I want it to be rotated like this and then frame 30.
I want it to rotate like so.
So that is how you animate objects sounds pretty awesome.
Now one last quick thing I want to show you on animating objects.
And actually I will get into that a little bit later on in a future video possibly.
So for now let's go ahead and just animate our Suzanne monkey head.
And also the fence quickly trying to clear these by hitting Alt.
I delete the keyframe going to this one.
All I delete keyframe.
Let's go back to the first one.
All right let's scale Suzanne down quite a bit.
So that she's actually able to fit through the door.
Let me get the proper size over here.
The delete key on the numpad to zoom in and focus on Suzanne
Scheller down a tiny bit more.
And let me get her on the proper level of the door.
All right.
Awesome so now I'm going to bring her back.
And with the fence let's go ahead and scale this down so scale it down with Eski.
Bring it down.
G z and let's move it out to here.
So that's kind of facing the door.
All we're going to do with this fence.
We're going to hit shift d to duplicate it X to bring it along the x axis and move it to about so.
And let's go ahead and actually what we're going to do is we're going to rotate this on the z axis so
r z.
One hundred and eighty and then bring it back so that we don't have a piece sticking out right there.
Now all we have to do is add the doorway to it.
So what we're going to do is once again Slyke this shift the X bring it to about here.
And now we're going to delete the array modifier on just this one and so that we have a door here.
And we could move this out a little bit as well.
And on this song I like that hit tab to go into edit mode and just select this piece right here any
piece or edge of courtesy or anything and hit L and I'm going to delete all the faces from that little
part right there.
Now this is going to be our little door.
We're not going to worry about putting hinges or anything on it.
This is just a simple animation that we are going to do.
First let's make sure that Suzanne will actually fit through your.
It's big enough the doorway.
All right.
Awesome.
So it looks like it will fit.
Let's actually make it just a tiny bit bigger just so that it's like all three of these.
Scale them up a bit grabs the.
All right now we're ready for our.
And our little animation that we're going to do here.
So with Suzanne unframed one let's quarter about here on frame one.
Let's select I location rotation scale.
Now let's go to frame.
And keep in mind that every 24 frames is 1 seconds.
So every 24 frames is a second.
You can see that via here 24 frames per second.
So if we go to frame 24 that would be one second that she reaches there.
I want to take at least let's say about 3 4 seconds or something.
I don't know.
I'm going to put frame let's put frame 80 so that frame 80.
I want her to be here.
And now I'm going to hit I.
Location rotation scale so let's see what that looks like.
That's it all day see that she moves up to the gates.
And then I want the gate to open up for Suzanne.
So the way we're going to do that if I select the gate I know that at fring 80 if she stops here.
So I wanted to have a little bit of a delay so I don't want it to open up right at frame Aidy I wanted
to have like a couple second delay so I frame 19.
I want it to be in this location or rotations are going to hit I location rotation scale and again for
this you could just do rotation because we're only going to be rotating in nothing else.
But I'm just going to select location rotation scale and now if we go to a future frame so get 24 frames
one second.
I want it to take at least two seconds so open up.
Let's go to frame.
A hundred and thirty ish should be good.
Let's hit our to rotate it and Z to rotate it on the z axis.
Now you could see that it's pivoting in a little bit of weird way because the thing is that this is
the pivot point for the mesh.
It's pivoting around that that center or origin.
But I wanted to pivot around here.
So the way to do that.
There are several different ways to do it actually.
But one way to do it is if we go into front view by hitting one on the numpad we could go ahead and
very simply a way to move the origin on your 3D object is if you go in edit mode you might have noticed
that when you move your object in edit mode the origin stays in the same spot.
So if I move in edit mode to here and then go back into object mode now if I rotate it are Zeeuw you
can see that it now rotates around here but my mesh is all the way out there.
So that's what we're going to do.
We are going to go into front view by hitting one of the numpad and we're just going to grab it along
the x axis and put it so that the origin is right there on the tip of the fence so that it swings open
from here.
Now hitting tab to go back into object mode move it and you can see an object mode it always moves the
mesh and origin together in edit mode.
You can move the mesh without the origin so you want to be aware of that because sometimes it can be
troublesome and detrimental to move the mesh without the origin.
In this case it's exactly what we want.
Now let's go ahead and make sure that our frame 90 were actually moved because now we move the origin
so I frame 90.
Let's go back move this over here.
And let's hit I.
Location rotation scale.
And then at frame 130.
Let's hit our z and rotate it in words so that it looks like it swings open like so and then hit by
location rotation scale.
So let's see what that looks like.
Let's see the whole animation.
She walks up to the gate and it swings open.
Awesome.
I'm getting way too excited.
So now all we have to do is make and go through the whole gate so we know her frame 130 is when the
gate is opened up and I want Suzanne to wait there just a couple seconds before she fully goes in so
selecting Suzanne at frame 140 I'm going to make it so that she is still in this location and rotation
and scaling so hitting I on free 140 and selecting location rotation scale.
So now tells Blendr that until a frame 140 she is still right here.
And then at frame 1 let's go 1 let's add another 60 90 let's do frame 2 to 20 to 30.
Let's go to 20.
Let's bring Suzanne home.
Let's bring her home and just bring her inside the house like so and hit I location rotation scale.
So let's take a look at our beautiful animation here.
Let's go back to the beginning hit.
I are sorry.
A To start the animation or press play right here and you could see that she walks up to the gate the
gate opens up and she goes into the house.
Pretty awesome.
So that is our little simple animation that we got here.
And again that is how that is one way to animate objects.
And congratulations on your first law animation.
And this is the start of many many more and many more complicated animations as well.
So very well done.
I'm proud of you even though I can't see you.
But you rock.
I'll see you in the next video lesson.
All right.
Take care.
Oh boy.
How awesome is it to be able to animate stuff.
Pretty cool.
All right let's get on with the quote of our video.
Face the thing you fear and in facing it you will see that behind the mask it's all just an illusion
a trick one doesn't get scared on Halloween and then live in fear his whole life from seeing all the
ghosts and monsters for he knows the truth of what's behind them.
Just like those masks on Halloween your fears hold a mask in front of them and only when you finally
see past the mask and realize the truth.
Does that fear no longer have a hold on you.
There is just an illusion my friends get past it and you will see for yourself.
Appreciate you guys have an amazing one.
All right.
Ciao for now.