Welcome to parent and child objects in this video.
We're going to see how parents can group together objects.
Essentially that becomes their children.
We're going to create a hierarchy which is easy to navigate.
We'll be using this to logically group our pieces together.
Now when we're doing parents and children the children can our children and those children our children
as well so you can have a whole family there so a parent child or grandchild and great grandchild et
cetera.
So looking at our hierarchy now going from left to right this is roughly how the outliner will be looking
where we have the chess scene itself.
There will be a lightsome objects in our in the camera in a couple of other things as well.
Now the moment we've already got an empty in our scene which is the white pieces and under that we're
going to put the bournes the rocks the Knights the bishops king and queen etc..
And looking at the number of other objects we have in our scene it might be worthwhile.
We'll see in the outline.
Now look at the numbers there.
It might be worthwhile actually putting the pawns in their own little empty as well.
Just so we can have good control over all of those bits and bobs but we'll see how that looks in the
outliner when we start working with it.
So talking about the outliner Let's pop over into blender.
Okay so over in blender we just need to fit in while first thing I'm going to do is just tidy up our
view so I'm going to hide the time line at the bottom so as we're not using it to hide the tall shelf
and hide the properties panel of three deer.
I'm going to move this section across because we're mainly going to be dealing with the outliner in
this case.
I'm going to leave the 3D view here because when we select our individual meshes we can see what's going
on.
Okay so the first thing we need to do here is start grouping these items together and we can see here
we have our scene inside the scene.
There are a load of options.
We've got at least one mesh objets And so we've got several mesh objects.
It's Which is why we're doing this organization.
We've got the camera we've got the lamp as well.
These can all be Parenthood or childed if you want to.
So I think with all of this in the hierarchy already it might be a good idea to group even our small
pieces together.
So the first thing I'm going to do is how to assign a parent object to its children.
So we start with the bishops here because we've only got two of them so it won't be a repetitive task
anyway.
But at the moment they've got they're just by themselves in our hierarchy.
So I'm going to give them an empty first of all so I'm going to go and empty again just a plain access
is absolutely fine.
I want to call this empty wights bishops.
So the way that's a parent is done is you select in the order or rather the last thing that you select
will become the parent.
After all three items are selected ending with the thing we want to be the parents.
We can go down to object where it's all scroll up to where it says parent and just go to object and
we can see here.
Control ampie is the shortcut and then it will say step parent to.
And we just want objects here.
So now we've done that.
We can see that white Bishop's has two meshes associated it looking at the outliner.
And when we drop that down we can see bishops beneath.
Now all you will notice and was a bit counterintuitive when I started using blender was when you click
white bishops it only selects are empty here.
It does not select the meshes beneath.
If you want to select everything beneath it depending on what you want to do says Say we wanted to hide
both the white bishops without selecting them all.
We could control and click on our empty and that would select everything.
Then if we click the little eye or pressed H We could hide all of those by clicking control you have
to have control down when you click so to select them all we can select them all in the outline.
By holding down control to high the more we'd have to do the same and that similar operation applies
to everything else.
Finally we can test this inside white pieces so we select our first objects or rather in this where
it is an object we select our first object and then we select our second object was holding downshifts
of both a selected and then go to object parents an object and again control and p..
So in this window here you could just go control and pay and set parent to object.
Now under white pieces we have white bishops and under that we have low poly Bishop 1 and 2.
In fact I might name them one and two.
Now just for neatness.
Okay guys it's Challenge time.
I'd like you to finish off the organization of the hierarchy so assign the porn's a parent empty called
White pawns and then make the white pawns empty.
A child of white pieces palls of you now and go give that a go.
Okay guys.
Welcome back.
Let's hop straight on over into blender.
Right so we're almost here with these porn.
So the first thing we need to do is create our empty that we're gonna assign as the parent to all of
these pawns.
So add empty plane axis.
I'm going to call this all white pawns.
B w an S.
Excellent.
I'm going to select all of these.
Holding down shift as we go with the final one being white pawns.
Then I'm going to go over here cause a has to be in the 3-d window control and pee sit them to the object.
And so that's tided up our hierarchy no end.
And then finally I'm going to select white pawns it's already selected and put them under white pieces
again control ampie and set it to the object.
And now we've got a much neater hierarchy.
She can see there are now the White pieces and the chessboard.
Excellent.
And when we open up that we have our white bishops and white porn.
Oh it looks like we had the series of objects selected so I'd made a mistake there.
So let's reassign these.
The parents object of white pawns.
I forgot to D before going forward and that's excellent that's popped.
All of those under there are white pieces white bishops who got two meshes under their white pawns we
should have eight meshes which we do.
And if you wanted to you could go through here and name these appropriately if you wanted to and to
keep that naming convention going without doing too much work.
The first one which has been called zero to seven.
Excellent.
How did you guys get on.
See you in the next lecture.