• last year
ALL TUTORIALS.
Transcript
00:00So hello everyone, welcome back to the channel Web4Click
00:04And today's topic is Hold an Object
00:07First of all, I would like to tell you that whenever we do any animation
00:11The most important thing we need is to hold and release anything
00:16And we can divide this process into two categories
00:20The first one is Holding with Characters
00:23And the second one is Holding with Objects
00:26In animation, our character can use any object
00:29For example, using a sword, gun or any object from one place to another
00:37Similarly, our second category is Holding with Objects
00:41In this process, our one object holds the other object and animates with it
00:48For example, if we are taking a stone in a truck
00:53Our truck is one object and the stone is another object
00:58In which our truck is holding the stone
01:01Similarly, if we take another object on top of another object and animate it
01:08Then we can call it Holding with Objects
01:11So in today's video, we will talk about this concept
01:15First of all, we take the second category, Holding with Objects
01:19To understand it in detail, let's go to the screen of our Blender
01:23So here you can see that I have taken a cube
01:26And I have three different spheres
01:29Normally, if I want to connect them here
01:31Then I will select all of them here
01:33And I can group them with Ctrl J button
01:36And before grouping, you will see that
01:38All the objects here have different center points
01:42But as soon as I select them and press Ctrl J button
01:46All these center points will be transferred to the main object
01:53And all three spheres will be connected to it
01:57Now wherever I move this cube, these spheres will be connected to it
02:02If I try to select any sphere from it
02:05Then it is in the center point of the cube
02:08So this cube will be selected by default
02:11So you saw that whenever we group something
02:14All its pivot points are transferred to the main object
02:21And if I ungroup it here
02:23Then I have to go to edit mode
02:25Press A button to select all of them
02:28Press P button and if I click on By Lose Parts
02:32Then all of them will be ungrouped
02:35If I check in object mode again
02:37Then you will see that all of them are separated
02:40But when you ungroup them
02:42Then you will see a change here
02:44If I select this sphere
02:46Then its pivot point is transferred to the cube
02:50So whenever you group any object
02:54Its pivot point goes to the main object
02:59And many times when people do rigging
03:02They face problems and the pivot point goes out of the body
03:06So this is the reason for that
03:08Because when you group the body
03:10It sends the pivot point somewhere else
03:13If you want to bring the pivot point in the sphere
03:17Then select all the spheres
03:19Go to object
03:21And here you will get an option
03:23Origin to center of mass
03:25Or origin to center of mass by volume
03:28Or by surface
03:30If you click on any of them
03:32Then it will go inside the sphere
03:36So this was my grouping procedure
03:39But I want that my pivot points
03:41Don't go inside the main object
03:44So I have another option for that
03:47I will select all of them
03:49And whichever object you want to make the main object
03:52By pressing the shift button
03:54Click on it
03:55If its color turns orange
03:57Then it is the main object
04:00Then I will press ctrl p
04:03If I press ctrl p
04:05Then I will get an option
04:07Object key transform
04:08If I click on it
04:10Then they will connect
04:12And here you will see
04:14All the pivot points are individually
04:16They are inside each other
04:18They are not changed this time
04:20And the benefit of this
04:22I will show you
04:24If I move the cube
04:26Then all my objects will move with it
04:28And I have the freedom
04:30If I want to move them individually
04:33Then I can move them individually
04:36And it won't affect my cube
04:38And here you can see
04:40The relationship line
04:42It will tell you that it is connected with it
04:45For now I will select them
04:47And if I want to ungroup them
04:49Then I will press alt p
04:51And click on clear and key transform
04:53Then they will separate
04:55When it comes to our animation
04:57Then both these methods fail
04:59Because we don't have any option
05:02With which we can group
05:04Or connect objects
05:06And save the keyframe
05:08As soon as you click on object constraint property
05:11Here you will get a constraint
05:13Child of
05:15This child of is very useful constraint
05:17And wherever we need to hold anything
05:20Or leave anything
05:22Or need to connect
05:24Then we will always use child of
05:26So let's understand it at the basic level
05:29And do a small animation
05:31So I want my cube
05:33To start moving from here
05:35And come here
05:37After that connect these three balls
05:39And then it will move forward
05:41So let's do it
05:43First of all I will move this cube
05:45In the y direction
05:47From where my cube will start moving
05:49Current location
05:51Here I will press i button
05:53And click on location
05:55So current location will be saved in my keyframe
05:57After that I have to move forward
05:59Like this
06:01And at 30 I will move it
06:03Here
06:05And press i button
06:07And here I have saved second location
06:09With shift we can move our timeline
06:11With left arrow
06:13Now I will press space button
06:15So you will see my cube
06:17Is animated like this
06:19Now I want my ball
06:21To connect with this cube
06:23So how will it connect
06:25Let's see
06:27I will connect one ball here
06:29So I will connect this red ball
06:31Here
06:33For this I will use my child of
06:35It is very easy to connect
06:37As soon as you click on child of
06:39A window will open in front of you
06:41And first of all
06:43Let's understand all the options
06:45Of this constraint
06:47First option is target
06:49In target we have to tell
06:51For which object you are using
06:53With whom you want to connect
06:55So if I select cube
06:57It will hold my cube
06:59And if I move it
07:01By selecting cube
07:03So you will see
07:05How my red sphere
07:07Is moving with it
07:09One thing you have to keep in mind
07:11When you select that object
07:13Only then that constraint will be visible
07:15Now here below
07:17Vertex group is given
07:19We can also use vertex group
07:21But it is used only for armature
07:23For now I will skip this option
07:25Whenever it will be needed
07:27I will tell it
07:29Now let's come to our next option
07:31Location, rotation and scale
07:33Here you can see x, y, z
07:35All three directions are given
07:37And this axis gives us freedom
07:39That we can select here
07:41On whom it will be connected
07:43And on whom it will leave it
07:45Suppose I want
07:47If I move in y direction
07:49So my red ball
07:51Will not be connected with it
07:53Only in x direction
07:55It will be connected
07:57Or if I move it in z direction
07:59It will be connected
08:01So what I have to do
08:03I have to deselect
08:05My y location
08:07Now if I move my cube
08:09On y direction
08:11You will see
08:13If it moves on y direction
08:15The ball will not move with it
08:17But if I move it on x direction
08:19My ball will move with it
08:21On x direction
08:23And if I move it on z direction
08:25It will move with it
08:27So I will select the ball again
08:29And come back to my constraint
08:31So in this way we can set
08:33Rotation, scale and all things
08:35According to our needs
08:37For now I will activate it
08:39Next you will get two options
08:41Set inverse and clear inverse
08:43Many times it happens
08:45When we use this constraint
08:47The ball moves away from its position
08:49And this mostly happens
08:51When we link something
08:53With a character
08:55Let me show you
08:57With an example
08:59Here you can see my character
09:01Who has a sword in his hand
09:03And if I want to connect this sword
09:05With my character
09:07Through this constraint
09:09So first of all I will use
09:11Constraint in my sword
09:13And then I have to select my target
09:15So in this way I will select
09:17The character's rig
09:19And as soon as I select the rig
09:21You will see that my sword
09:23Will move away from its position
09:25So to sort out this problem
09:27We have two options
09:29Set inverse and clear inverse
09:31If you want to bring the sword
09:33Back to its position
09:35Simply click on set inverse
09:37And your sword will come back
09:39To its position
09:41So in this way whenever our object
09:43Gets confused
09:45You always have to click on set inverse
09:47We will learn about set inverse and clear inverse
09:49In detail in the next video
09:51First of all let's come to our last option
09:53Influence
09:55Influence means how much we want to
09:57Weaken the connection
09:59Here if I move the cube
10:01Then it will be strongly connected
10:03And it will move according to
10:05The way our cube is moving
10:07But if I reduce its influence
10:09To half
10:11Then it will move with my cube
10:13But
10:15It will move at half level
10:17Meaning the way it was
10:19Strongly connected earlier
10:21It will not be connected
10:23Meaning when our cube moves
10:25Half of it will move
10:27In the same way if I
10:29Reduce its influence
10:31Then you will see that my cube
10:33Will move ahead
10:35And this connection will
10:37Reduce its connection
10:39If you want to make this connection
10:41Weak or strong
10:43You can use it by animating it
10:45Here you can see the animation
10:47How my globe
10:49Is getting connected
10:51Directly from there
10:53So whenever we apply this constraint
10:55It starts its animation
10:57From zero timeline
10:59But I want to activate it
11:01At 40
11:03So first of all I have to deactivate it
11:05And here you can see the I button
11:07If I tick this I button
11:09Then it will
11:11Deactivate
11:13And I will make a keyframe
11:15If I press I button
11:17Then you will see
11:19It changed the color
11:21Meaning my keyframe is made
11:23According to this keyframe
11:25It has been deactivated
11:27Now from here to here
11:29Only individually
11:31My cube
11:33Will move here
11:35Up and down arrow
11:37We can move our timeline
11:39On this keyframe
11:41Now I will move one keyframe
11:43And enable it
11:45For that I will
11:47Click here
11:49And you can see
11:51It is activated
11:53And connected
11:55If I press I button again
11:57It will save my keyframe
11:59So you can see
12:01My keyframe is saved
12:03Now from 0 to 40
12:05It was disconnected
12:07And now it is connected
12:09To the next frame
12:11Now if I play it
12:13It will work like this
12:15After this keyframe
12:17If I pull it
12:19You can see
12:21My sphere is connected
12:23Now let's say
12:25I will move my cube
12:27Here
12:29And connect my second sphere
12:31So the one we are going to connect
12:33We will use its constraint
12:35So I will take a constraint
12:37And the location of the cube
12:39I will see it here
12:41This is my keyframe
12:43I will press shift D button
12:45And in this position
12:47I will move my mouse
12:49And click here
12:51So you can see
12:53My cube will stay here
12:55And moving it a little
12:57I will move my cube here
12:59And I will press I button
13:01And save the location
13:03Now with shift
13:05I will play it
13:07You can see my cube stayed here
13:09It selected the first ball
13:11Like this
13:13And if you need
13:15You can use a marker
13:17You can use M button directly
13:19Or you can use add marker
13:21If you move this marker
13:23With G button
13:25It will move like this
13:27Now my main object
13:29The cube
13:31I will set its location
13:33With a marker
13:35So I will know where is its animation
13:37So I will press shift D button
13:39And set the second marker
13:41In the mean time
13:43My cube stayed here
13:45And in the mean time
13:47I have connected the red one
13:49Now let's move ahead
13:51I will select the cube
13:53So my keyframe
13:55If I want to move my cube again
13:57So I will press shift D button
13:59And move it
14:01In the mean time
14:03My cube will stay here
14:05And in the mean time
14:07I have to select
14:09The green one
14:11So I will use a marker
14:13I will put the first marker here
14:15And I will put the second marker here
14:17So I know
14:19I have to use a keyframe
14:21As soon as I select the green one
14:23All the keyframes of the cube are gone
14:25But with the help of the marker
14:27I know where are the keyframes
14:29So let's connect the green one
14:31In the green one
14:33I have to use the constraint
14:35And press the target button
14:37And as soon as I click on the cube
14:39It will connect to my cube
14:41But the connection
14:43Is from zero
14:45If I play it again
14:47It will be from zero
14:49But I want
14:51It to be connected
14:53So I have to
14:55Do the same thing
14:57I have to click on the eye
14:59So that it deactivates
15:01And I have to press the I button
15:03So that
15:05The process will be deactivated
15:07And I have to move one keyframe
15:09And click on it again
15:11So that it gets active
15:13And to make the keyframe
15:15I have to press the I button
15:17And the color will change
15:19So in this way
15:21My green one is connected
15:23So now if I play it
15:25From the starting
15:27You will see that my cube will come like this
15:29It will connect the red one
15:31After that it will connect the green one
15:33And now if I move it forward
15:35Green and red both will move with it
15:37Now if I go a little further
15:39I can connect the pink one
15:41With it
15:43So let's connect it
15:45And see
15:47Now if I move the cube forward
15:49And with the I button
15:51I save the location
15:53And for a while my cube will stay
15:55With the shift D button
15:57I will move it forward
15:59And these markers
16:01I will click on them
16:03And the same old way
16:05You have to go to the constraint
16:07And simply
16:09As soon as you select the cube
16:11It will be connected
16:13But it will show you
16:15Here you have to disable it
16:17So that it disables it
16:19So if I want to disconnect it
16:21Simply click on it
16:23And press the I button
16:25So now it will disconnect it
16:27Again I will move a keyframe
16:29And this time
16:31I will activate it and with the I button
16:33I will connect it again
16:35So in this way
16:37I will move my cube a little further
16:39Here
16:41And with the I button I will save its location
16:43Now if I play it
16:45And show it to you
16:47So my cube will first
16:49Come to its location
16:51It will connect the red one
16:53After that it will connect the green one
16:55After that
16:57Our pink one
16:59Will connect it and move forward
17:01If you want to increase the timeline
17:03You can do it with the control end
17:05So this is our
17:07Process of holding any object
17:09So let's go back
17:11To the second screen of the Blender
17:13Here I have taken a small truck
17:15And a ball
17:17The road is made here
17:19You can download the whole map
17:21From the Sketchfab
17:23You will get the link in the description
17:25If you want to move the road forward
17:27Simply press the Shift D button
17:29And see that we are moving on the red axis
17:31So press the X button
17:33So we can move the red road forward
17:35In this way
17:37I will also increase it a little
17:39And this time my green is the Y axis
17:41And I will increase it a little
17:43In this way
17:45So whenever you bring a model
17:47From somewhere in the Blender
17:49Or you will download it from Sketchfab
17:51So here in this way
17:53You will see different points here
17:55And in the outliner you can see
17:57It is present here in the name of dump truck
17:59Now if I click and try to select this truck
18:01Then I will have a problem here
18:03For this I will go to the outliner
18:05And in the outliner
18:07I will right click on the dump truck
18:09And I will click on select hierarchy
18:11So all the trucks will be selected here
18:13First of all to make it easy to select the truck
18:15So for that I will press the Shift A button
18:17And you will get an option called empty
18:19Here I have to click on the plane axis
18:21And as soon as I click
18:23You will see an empty name in the outliner
18:25In the collection
18:27If you can't see the empty
18:29Then take the help of the 3D cursor
18:31I click on the 3D cursor here
18:33And if I want to bring the empty
18:35To this 3D cursor
18:37Then I will click on the empty
18:39And I will press the Shift S button
18:41As soon as I click on the selection to cursor
18:43My empty will come on this cursor
18:45And if I want to take the cursor
18:47Then I will press the Shift S button
18:49Because my cursor is coming here first
18:51So if you want to move the cursor
18:53On the selected object
18:55Then choose this option
18:57So the way to remember is simple
18:59Whatever will be your first
19:01That will move here
19:03And the first thing I have to do
19:05I have to click on the move
19:07So that my cursor does not click again and again
19:09We will send the cursor back to its place
19:11By clicking on the cursor to word origin
19:13And bring the empty here
19:15In this way
19:17Now the first thing I have to do
19:19I will connect this entire truck with this empty
19:21So that if I move this empty anywhere
19:23Then it is easy for me to select
19:25Here you can see
19:27My empty is in this folder
19:29And my truck
19:31In the name of dump truck
19:33It is out of this folder
19:35So always these two things
19:37If they are in different places
19:39Then they can create a problem for you
19:41So either you bring the empty out of it
19:43Or take this dump truck
19:45In the scene collection
19:47So I select this dump truck from here
19:49Right click select hierarchy
19:51And I will move it here
19:53In this folder
19:55Now both of them have come here
19:57Now from here I will right click
19:59Select dump truck
20:01After that I am here
20:03I will click on my empty object
20:05And make it the main object
20:07It will turn a little orange
20:09On becoming the main object
20:11And if not, then just click on it
20:13Then it will become my main object
20:15If you want to connect them
20:17Press ctrl p button
20:19And as soon as you click on the object key transform
20:21My empty will be connected to it
20:23Now it will be very easy for me to move the truck
20:25Simply I have to select the empty
20:27And my truck can be moved like this
20:31So first of all my truck will be here
20:33Like this
20:35And after moving it will go to my ball
20:37And ball will go inside this truck
20:39And after that
20:41It will go little ahead and
20:43Will bring the ball back
20:45Let's see how to do this process
20:47Now our ball is going to stick with it
20:49So always the thing which will go with it
20:51In that we will use constraint
20:53Here we will go to constraint
20:55And in constraint we will use child of
20:57Now first of all I will move this truck
20:59For current location
21:01I will select its empty
21:03And by pressing I button
21:05I will save the location
21:07I will bring it ahead on 30 frame
21:09And like this I will bring it near the ball
21:11And like this I will bring it near the ball
21:13And by pressing I button
21:15I have saved the other location
21:17So like this my truck will move here
21:19Now my next step is
21:21My ball will move inside this truck
21:23Now my next step is
21:25My ball will move inside this truck
21:27Now if I want to put this ball inside this
21:29So if I drag and drop it
21:31Then you will see I will face lot of problem
21:33First of all what I have to do
21:35I have to bring the origin point of this tank
21:37In its center
21:39So for that I will click on object
21:41And here you will get an option
21:43Origin to center of mass
21:45Means volume
21:47Means whatever is my depth
21:49Like glass or any bucket
21:51So here I will move the pivot point
21:53So here I will move the pivot point
21:55Now my pivot point
21:57If I move this ball here
21:59Then it will move easily
22:01I don't have to drag and drop
22:03I don't have to drag and drop
22:05So for that I will use 3D cursor
22:07So for that I will select the tank
22:09So for that I will select the tank
22:11And if I want to bring 3D cursor on its pivot point
22:13Then I will press shift S button
22:15And as I told you
22:17The thing which is going to move
22:19That will be first
22:21I have to select that option
22:23Cursor to selected
22:25Means cursor is going to move
22:27My selected object
22:29As soon as I click on it
22:31You will see my cursor will come on its pivot point
22:33Now first of all I will
22:35Press I button and save its location
22:37And now I have to
22:39Take this ball in this truck
22:41So first of all I will bring the timeline here
22:43And press shift S button
22:45Now because I am taking the ball on cursor
22:47Means this is my selection
22:49And it is moving on the cursor
22:51So my selection is coming here
22:53So as soon as I click on it
22:55My ball will come here
22:57I will move it up a little
22:59And press I button and save it
23:01Now I will play it
23:03So it is going in this way
23:05Which is not looking good
23:07Because it is cutting it
23:09So I will bring it in the middle
23:11And I will move it up a little
23:13So that it jumps
23:15I will press I button
23:17And click on location
23:19So you will see my ball will come here
23:21So I will move it a little forward
23:23Like this
23:25You can move your timeline
23:27With up and down arrow
23:29And I will move it up a little more
23:31Like this and with I button
23:33I will save the location
23:35Now you will see how my ball
23:37Is coming in the tank
23:39Now my next target
23:41Is to connect it with this truck
23:43If I move the truck forward
23:45Then my ball will stay there
23:47For that we will use child of
23:49Which I have already selected
23:51Child of
23:53Now I just have to select the target
23:55Click on dropper
23:57And click on empty
23:59And my target will be selected here
24:01But in this
24:03As the first problem came
24:05It will catch it from zero
24:07And as soon as I play it
24:09It will bring it from zero
24:11Now I have to check
24:13Where is the keyframe of my truck
24:15As soon as my truck reaches here
24:17It reaches here
24:19After that my ball
24:21Moves
24:23So the keyframe of the truck is here
24:25But as soon as I click on the ball
24:27It will disappear
24:29So first I will put two markers
24:31Wherever you want to put a marker
24:33You just have to bring your timeline
24:35And if you want to press M button
24:37It will put a marker
24:39Now
24:41First of all
24:43I have to end the connection
24:45So you just have to click here
24:47And press I button
24:49So a new keyframe will be created
24:51Now my truck will come here
24:53And the ball will go inside
24:55Now the first thing I have to do
24:57Is to press shift D button
24:59And bring it here
25:01The reason for this is
25:03When I select the ball
25:05The animation of my ball is working here
25:07And if I select the truck
25:09My truck will stand here
25:11And if I want to move it
25:13Simply move the keyframe
25:15After that move the truck
25:17Where you want to take the truck
25:19Press I button
25:21And select the location
25:23So in this way my truck
25:25Will move here
25:27Now you can see my ball
25:29It is going inside the truck
25:31But it is not going with the truck
25:33The reason for this is
25:35The point at which I disabled
25:37Is at this point
25:39I disabled it at frame 60
25:41So I will make a next frame
25:43And enable it from here
25:45So that it connects with my truck
25:47For that simply click on it
25:49And press I button
25:51So that my keyframe is saved here
25:53And
25:55With this keyframe
25:57My truck is now connected
25:59And it will move with the truck
26:01Whenever my truck moves with it
26:03My ball will move with the truck
26:05Again I will select the truck
26:07And how much time I have to
26:09Wait for the truck to stand here
26:11I will press the shift D button
26:13And move it forward
26:15I can move my markers here
26:17So that I know that I have to
26:19Finish the animation of the ball
26:21And first of all if I want to
26:23Move the ball in this position
26:25So first of all I will save the location
26:27With I button
26:29And move it forward
26:31I will move the ball here
26:33And keep it down
26:35And with I button
26:37I will save the other location
26:39Now my ball will come out like this
26:41If you want to jump it
26:43Then make a keyframe of jump
26:45And press I button like this
26:47And it will come down like this
26:49Let's move it forward
26:51So that it doesn't hit it
26:53So this was the process of
26:55Removing our ball
26:57Now we have to disconnect it
26:59To disconnect it
27:01I will click on it
27:03And as soon as I click on it
27:05My ball has run away from its location
27:07You have to pay attention to this
27:09So whenever you will disconnect it
27:11You will face this kind of problem
27:13Let's see how to solve it
27:15So I will bring the cursor on it
27:17And press I button
27:19So my keyframe will be generated here
27:21Now to disconnect it
27:23We will go to its next keyframe
27:25And as soon as I click on it
27:27My ball has run away from its location
27:29First I will click on I button
27:31And save the animation
27:33You will face this problem everywhere
27:35Let's see how to solve it
27:37If I will go one keyframe back
27:39Then you will see the ball is coming here
27:41And as soon as it comes forward
27:43The ball disappears
27:45We will not use set inverse and clear inverse
27:47Only in starting
27:49And for rigging
27:51Let's see how to do it
27:53I don't have to do anything
27:55I just have to save its location
27:57First I have to go to its last keyframe
27:59And I will save its location
28:01By pressing I button
28:03And wherever my ball has gone
28:05To bring it back
28:07In its position
28:09I will use the 3D cursor
28:11So its pivot point
28:13Here I will bring my 3D cursor
28:15Shift S to cursor to selected
28:17Here my 3D cursor has come
28:19Now I will go to next frame
28:21And I will select my ball
28:23I will right click and select select hierarchy
28:25You can see I can select it from the timeline
28:27Like this
28:29Or wherever your ball is in the whole scene
28:31You can select it there
28:33Now simply press shift S button
28:35And because we are bringing the selection thing
28:37So I will click on selection to cursor
28:39And my ball will come here
28:41Simply I have to make another keyframe of location
28:43And my animation
28:45Will be complete here
28:47Now the animation of the truck is ending here
28:49So if I want I can move it back a little
28:51And again
28:53I will move the truck forward
28:55And I will save its location
28:57By pressing I button
28:59Now you will see the complete animation
29:01Like this
29:03So I will keep this view
29:05To see the animation
29:07I will come to 0 with shift left arrow
29:09And my truck came like this
29:11Ball went inside it
29:13And it went to another place and brought the ball down
29:15And my truck moved forward
29:17So like this our second category
29:19Holding with object
29:21Is complete
29:23Means whenever our one object
29:25Will take the other object somewhere
29:27And will leave it
29:29We can use it in a very simple way
29:31Now our first category
29:33Is holding with characters
29:35So how does the character hold
29:37How does the character leave
29:39How does our character sit on the bike
29:41How does he sit in the car
29:43We will know about all this in detail
29:45In the next episode
29:47So today's video ends here
29:49See you in the next video
29:51Till then
29:53Goodbye

Recommended