< Return to Video

Blender 3D Absolute Beginner Follow Path Animation using Parents for Secondary Motion

  • 0:01 - 0:03
    >> Today's lesson is Follow Path Animation.
  • 0:04 - 0:07
    We're going to be using the
    spaceship that we used previously
  • 0:08 - 0:14
    from the -- from a previous lesson.
  • 0:14 - 0:19
    If you want to kind of check that out,
    super simple, about a 10-minute video.
  • 0:20 - 0:25
    We'll be using this to follow a path and
    then incorporate some of the other lessons
  • 0:25 - 0:30
    in parenting also so it can
    have its own animation.
  • 0:31 - 0:31
    All right?
  • 0:31 - 0:37
    So, first things first is let's create
    the line that it will follow along.
  • 0:37 - 0:43
    So, I'm going to go to the top viewport, but,
    before I do that, let me turn on my screencast.
  • 0:44 - 0:46
    All right.
  • 0:46 - 0:50
    I'm going to press number 7 on the
    numpad to be viewing this from the top.
  • 0:52 - 0:57
    I'm going to add a curve and a circle.
  • 0:57 - 1:00
    We'll start with a circle,
    then I'll expand this one here
  • 1:00 - 1:04
    so the spaceship can kind
    of roam around a little bit.
  • 1:04 - 1:06
    Okay? And I'm going to hit Tab right here.
  • 1:06 - 1:13
    We'll probably pinch this
    two points right here just
  • 1:14 - 1:21
    so that it doesn't follow a --
    kind of like a circular motion.
  • 1:21 - 1:24
    So, it's kind of like it's
    patrolling an area kind of like so.
  • 1:24 - 1:25
    All right?
  • 1:25 - 1:27
    And let's rotate the camera.
  • 1:27 - 1:28
    All right?
  • 1:28 - 1:30
    So, it's kind of in the same
    level at the spaceship.
  • 1:30 - 1:30
    All right?
  • 1:31 - 1:35
    And what we'll do is we want
    to position the spaceship
  • 1:35 - 1:39
    to where you want to kind of get it to start.
  • 1:39 - 1:42
    So, with a circle, I think the -- this --
  • 1:43 - 1:48
    the vertex right here or
    point is the starting point.
  • 1:49 - 1:52
    And we can position it right here.
  • 1:52 - 1:53
    So, I'm going to select the spaceship.
  • 1:54 - 1:58
    Okay? And, as you can see, it's not joined yet.
  • 1:58 - 2:02
    So, I'll just simply join this.
  • 2:02 - 2:05
    I don't need to animate this
    independent of this one.
  • 2:05 - 2:07
    We'll just kind of make it go around.
  • 2:07 - 2:09
    So, Control-J to kind of join the two together.
  • 2:10 - 2:16
    Okay? And let me see here on
    normals, click on Auto Smooth.
  • 2:16 - 2:19
    Okay? And it should be good to go.
  • 2:19 - 2:20
    So, I'm going to go number 7 again.
  • 2:21 - 2:25
    I'm going to go to my Move
    tool and move this right there.
  • 2:26 - 2:35
    Okay? So, we want the path to be the parent so
    we're going to Shift-click the path last, right,
  • 2:35 - 2:41
    kind of from the previous lesson, Control-P,
    and we're going to do Follow Path right here.
  • 2:41 - 2:45
    And, when I tap the Space bar,
    it just simply goes around.
  • 2:47 - 2:47
    All right.
  • 2:47 - 2:50
    So, let's take a look at that one.
  • 2:51 - 2:54
    I'm going to go to the Animation tab right here
  • 2:54 - 2:58
    so we could actually see here
    what it might look like rendered.
  • 2:58 - 3:02
    And this is our working environment.
  • 3:02 - 3:09
    When you select a follow path, you
    have to go to the curve right here.
  • 3:09 - 3:11
    The Path Animation is right here.
  • 3:11 - 3:14
    By default, it's 100 frames.
  • 3:14 - 3:22
    Okay? So, if I change that to 250, which
    is the same as our timeline length,
  • 3:22 - 3:30
    then it will just go slower of course, okay,
    and it will -- you know, it will adjust.
  • 3:30 - 3:37
    Okay? Evaluation time is simply the position
    in time where it's at so you can kind
  • 3:37 - 3:40
    of change this to offset where it starts.
  • 3:40 - 3:41
    Okay? But I'm not going to do that.
  • 3:41 - 3:43
    We're going to leave it as is.
  • 3:44 - 3:50
    We also have this Follow checkmark
    that you notice right here.
  • 3:50 - 3:51
    Let me go to the top right here.
  • 3:52 - 3:58
    You notice right here that, on the curvature
    right there, it's actually following.
  • 4:00 - 4:03
    Right? It's actually rotating.
  • 4:03 - 4:05
    It's pivoting on those moments right there.
  • 4:05 - 4:12
    So, if I uncheck that, it just
    kind of hover and slides around.
  • 4:12 - 4:16
    Okay? So, depending on what you want to
    do, especially when you create a path
  • 4:16 - 4:19
    where let's say you put a
    vehicle and it needs to bank,
  • 4:19 - 4:25
    let's say like on a NASCAR oval
    racetrack you want it to bank,
  • 4:25 - 4:31
    then that Follow would definitely
    be something you want to put.
  • 4:31 - 4:34
    Okay? But, for now, we're just
    kind of demoing this as is
  • 4:34 - 4:39
    and we're not going to change anything.
  • 4:39 - 4:43
    So, that's it for Follow Path Animation.
  • 4:43 - 4:44
    But you're kind of limited at this point.
  • 4:44 - 4:51
    You are not going to be able to give
    this spaceship some other things
  • 4:51 - 4:53
    to do other than follow this one.
  • 4:53 - 5:01
    Okay? That's when we need a parent so that
    we have to parent the spaceship to an empty,
  • 5:02 - 5:11
    make the empty become the child of the path
    and the spaceship will be independent, okay,
  • 5:11 - 5:13
    so we can do other things with it.
  • 5:13 - 5:15
    So, let's take a look at that one.
  • 5:15 - 5:18
    So, I'm just going to go to frame
    one, which is the beginning.
  • 5:19 - 5:28
    Okay? And what I'll do is Alt-P or
    Option P. I'm going to clear the parent.
  • 5:28 - 5:33
    Okay? So, what I'll do is
    I'm going to add an empty.
  • 5:33 - 5:37
    So, an empty is simply a
    non-renderable object in Blender.
  • 5:38 - 5:39
    Other programs, they call it a null.
  • 5:41 - 5:42
    So, we're going to go Empty.
  • 5:42 - 5:46
    And you can pick -- you know, you can
    change the shape, it doesn't matter.
  • 5:46 - 5:51
    I'll go with a cube right here so we
    could see it and it's -- you know, it's --
  • 5:51 - 5:56
    basically, we're going to position
    this around the object here.
  • 5:56 - 5:59
    Okay? Let me turn on my screencast
    for the Animation tab.
  • 6:00 - 6:01
    All right?
  • 6:01 - 6:06
    Then I'm going to just kind of eyeball
    this and then just kind of make sure
  • 6:06 - 6:09
    that it's kind of centered to our object.
  • 6:09 - 6:12
    I could snap it to that using your Snap.
  • 6:13 - 6:13
    But, you know, it's fine.
  • 6:13 - 6:18
    I'm going to go number 1 right
    here, maybe move it up a little bit.
  • 6:18 - 6:24
    Ah, that's probably fine right there so that
    it's on the same kind of level as the path.
  • 6:24 - 6:25
    All right?
  • 6:25 - 6:29
    So, what we'll do is that we'll
    select the spaceship first,
  • 6:29 - 6:35
    then Shift-click the empty,
    okay, last, Control-P.
  • 6:35 - 6:38
    And we want Object.
  • 6:38 - 6:38
    All right?
  • 6:38 - 6:45
    So, nothing spectacular here, we're just
    going to select the empty right here.
  • 6:45 - 6:47
    Wherever I move the empty,
    the spaceship follows.
  • 6:47 - 6:50
    And then when I select the spaceship,
    it's got its own independence.
  • 6:50 - 6:51
    All right?
  • 6:51 - 6:57
    So, now, so instead of directly
    parenting the spaceship
  • 6:57 - 7:00
    to the path, we will do that with the empty.
  • 7:00 - 7:07
    So, I am going to select the empty, Shift-click
    the path, Control-P, to parent object.
  • 7:08 - 7:14
    So, now, same ole boring one,
    okay, the follow is in check.
  • 7:14 - 7:19
    So, if I put on follow right here, we'll
    actually do the orientation right there
  • 7:19 - 7:20
    so it's not just kind of hovering.
  • 7:20 - 7:21
    But let's uncheck that for now.
  • 7:21 - 7:21
    All right?
  • 7:22 - 7:24
    So, now, what is the advantage of this?
  • 7:24 - 7:28
    Well, now we have options for this.
  • 7:29 - 7:35
    We can now animate the spaceship
    independent of the path.
  • 7:35 - 7:37
    All right?
  • 7:38 - 7:44
    So, let's start with something
    simple, maybe rotate this spaceship,
  • 7:44 - 7:49
    okay, just kind of rotating non-stop.
  • 7:49 - 7:50
    All right?
  • 7:50 - 7:50
    So, we'll do that.
  • 7:50 - 7:56
    Let's say it does a 360 in let's say 50 frames.
  • 7:56 - 8:01
    Right? So, let's -- since we have 250
    here, so it's something divisible.
  • 8:01 - 8:03
    So, I'm going to go back to frame one.
  • 8:04 - 8:05
    All right?
  • 8:05 - 8:07
    I'm going to go here.
  • 8:07 - 8:09
    So, that will be the z-axis rotation.
  • 8:09 - 8:11
    Right? So, it'll be z-axis.
  • 8:11 - 8:14
    So, we're going to give it rotation like that.
  • 8:15 - 8:18
    Okay? And we're going to
    go to our item right here.
  • 8:19 - 8:21
    So, the z rotation, it's at zero.
  • 8:21 - 8:23
    So, we want it to be there.
  • 8:23 - 8:26
    So, we're going to right-click
    this, insert a single keyframe.
  • 8:26 - 8:30
    Then we go to Frame 50.
  • 8:31 - 8:38
    Okay? And then we'll go 360
    on this one, so just 360.
  • 8:38 - 8:40
    So, if you want it to go the other
    way, you do a negative number.
  • 8:40 - 8:43
    But I'll just do positive on this one, 360.
  • 8:45 - 8:48
    Okay? And then I'm going to
    right-click single keyframe.
  • 8:48 - 8:53
    So, now it'll just do its
    kind of -- it's rotating.
  • 8:53 - 9:00
    Okay? So, if I want to make sure that that
    kind of repeats, I select the key, Shift-E,
  • 9:01 - 9:06
    make cyclic, all right, so it
    just kind of does it non-stop.
  • 9:07 - 9:08
    There it is.
  • 9:09 - 9:14
    So, now we have kind of like we're not
    clicking Follow, remember, on this one.
  • 9:15 - 9:21
    Okay? So -- but, if we click Follow here, it'll
    -- you know, it'll kind of compensate out of it.
  • 9:21 - 9:24
    It doesn't look like it's hovering because
    you can see that kind of slow down.
  • 9:24 - 9:26
    So, we're just going to take that off.
  • 9:26 - 9:32
    So, we just kind of see this one just
    kind of -- it will do its thing going on.
  • 9:32 - 9:32
    All right?
  • 9:33 - 9:34
    So, what else can we do with this?
  • 9:34 - 9:40
    We can actually make this spaceship go
    kind of up and down while it's hovering.
  • 9:40 - 9:42
    Okay? So, let's go to the front right here.
  • 9:42 - 9:44
    Okay? Let's go to frame 1.
  • 9:46 - 9:48
    All right?
  • 9:48 - 9:54
    So, if I go to my Move tool, select the
    spaceship, so let's say we want it to --
  • 9:54 - 9:55
    yeah, we can make it start right here.
  • 9:55 - 9:56
    So, that'll be z-axis.
  • 9:57 - 9:59
    Right? It'll be z-axis right here.
  • 9:59 - 10:04
    So, I will go right-click,
    Insert Single Keyframe.
  • 10:04 - 10:13
    Okay? And then we're going to go to 25 so
    that we can go -- actually, let's go to --
  • 10:13 - 10:20
    let's go to like 15 and then
    we'll go the other one 35.
  • 10:20 - 10:22
    Okay? So, we'll go 15.
  • 10:22 - 10:31
    And we'll go up a little bit, just a little
    bit, right-click, Insert Single Keyframe.
  • 10:31 - 10:41
    We go to frame 35, we move it
    down a little bit, right-click.
  • 10:42 - 10:44
    And then, on frame 50 --
  • 10:48 - 10:52
    -- we want it to go back to the
    line, which it will do since --
  • 10:53 - 10:56
    oh, we've got no other keyframe right there.
  • 10:56 - 11:02
    Oh, no. Let's go to our frame 1
    and let's just copy this value.
  • 11:02 - 11:08
    Okay? So, whatever this one is, this is when
    it didn't move, so I'm just going to Command-C
  • 11:08 - 11:16
    or Control-C to copy it, go to frame
    50, paste it here, okay, press Enter,
  • 11:17 - 11:19
    right-click, Insert Single Keyframe.
  • 11:19 - 11:22
    So, there it is.
  • 11:22 - 11:26
    So, it's kind of doing its little hover.
  • 11:26 - 11:33
    Okay? Now I will cycle the
    motion of going up and down.
  • 11:34 - 11:35
    All right?
  • 11:35 - 11:41
    So, we can just go -- I'm going to go
    press A right here to select everything.
  • 11:41 - 11:46
    Even though we cycled the other one, it doesn't
    matter, it'll just kind of overwrite on top
  • 11:46 - 11:48
    of it, right, recycle the rotation.
  • 11:48 - 11:49
    So, I'm going to go Shift-E.
  • 11:49 - 11:56
    So, I press A over here to select all the keys
    for the rotation and both up and down movement.
  • 11:57 - 11:59
    Shift-E, Make Cycle.
  • 12:00 - 12:02
    Okay? So, now let's watch this one.
  • 12:03 - 12:06
    So, it's just hovering up and down.
  • 12:07 - 12:11
    Kind of hard to tell on the camera right
    here because it's kind of subtle, but --
  • 12:13 - 12:22
    so, we have added up and down
    movement on the spaceship.
  • 12:22 - 12:28
    Okay? And we added the rotation as well.
  • 12:29 - 12:29
    All right.
  • 12:29 - 12:37
    So, this should kind of explain
    to you guys how Follow Path work.
  • 12:37 - 12:44
    So, you can pretty much parent anything to that
    one, it will follow along the line of course.
  • 12:44 - 12:51
    And if you want to add secondary motion
    to the object, you have to use a parent.
  • 12:52 - 12:59
    Let the parent do the job of following the path
    and then give your object or, in this case,
  • 12:59 - 13:08
    the spaceship independence by
    animating it separately from the empty,
  • 13:08 - 13:10
    which is the cube, as its parent.
  • 13:15 - 13:16
    The same thing for the bouncing ball.
  • 13:19 - 13:21
    Now that we have parented
    the ball with an empty,
  • 13:22 - 13:27
    we can also create the follow
    path and it should follow along.
  • 13:28 - 13:28
    All right.
  • 13:28 - 13:30
    So, for this one, I'm going to go number 7.
  • 13:31 - 13:32
    Let's go to a solid mode.
  • 13:33 - 13:39
    And I will create a path curve.
  • 13:39 - 13:40
    Let's create a path right here.
  • 13:40 - 13:42
    So, this will be just a straight line.
  • 13:42 - 13:44
    All right?
  • 13:44 - 13:47
    If I press Tab, there it is.
  • 13:48 - 13:54
    So, just kind of curve this along so it's a
    straight kind of -- well, not a straight line,
  • 13:54 - 13:56
    but not -- it's an open curve is what I meant.
  • 13:56 - 14:03
    Sorry. And it's not a -- it's not a
    closed -- a curve like the circle.
  • 14:04 - 14:12
    So, just kind of -- well, let me add another
    one in there, right-click, Subdivide.
  • 14:13 - 14:17
    I just want it to kind of curve in a little bit.
  • 14:21 - 14:23
    Maybe add another one in there.
  • 14:27 - 14:34
    Remember, each point or node is calculated
    as distributed as the same distance.
  • 14:34 - 14:37
    So, if you pile in multiple points
    right there, it slows down in that one.
  • 14:38 - 14:43
    Okay? So -- and it will do it
    in 250 once we adjust it to 250.
  • 14:44 - 14:45
    Well, let me just show you that.
  • 14:45 - 14:48
    So, I'm going to add a bunch right here.
  • 14:48 - 14:50
    So, right-click, Subdivide.
  • 14:51 - 14:57
    And I will actually pile those a little bit
    closer there so that you guys visually see
  • 14:57 - 15:06
    when -- how the program interpolates --
    interprets, sorry, each segment as the same kind
  • 15:06 - 15:08
    of distance regardless of
    if you pile them or not.
  • 15:08 - 15:15
    Okay? So, let's go to the front right here.
  • 15:15 - 15:21
    And then I will move my path right
    here kind of the same area as that one.
  • 15:21 - 15:28
    I'm going to select the Helper,
    number 7, right here and just kind
  • 15:28 - 15:33
    of position it right there where it starts.
  • 15:33 - 15:40
    Okay? So, let's turn on all
    our kind of gizmos and whatnot.
  • 15:41 - 15:48
    So, select the Helper, Shift-click
    the path, Control-P, Object.
  • 15:49 - 15:49
    Okay?
  • 15:52 - 15:56
    Oh, sorry, not Object, Follow Path.
  • 15:56 - 15:57
    What was I thinking?
  • 15:57 - 15:58
    All right?
  • 15:58 - 16:00
    Control-P, Follow Path.
  • 16:01 - 16:05
    Okay? All right.
  • 16:05 - 16:07
    Where is the playback?
  • 16:11 - 16:11
    All right?
  • 16:11 - 16:16
    So, we just have to change that to
    250 so it'll be a slow-moving one.
  • 16:16 - 16:18
    Path Animation 250.
  • 16:19 - 16:21
    It will stretch it all the way.
  • 16:21 - 16:25
    So, let's watch it from the beginning.
  • 16:26 - 16:28
    All right?
  • 16:28 - 16:33
    Went through the -- did I went through the wall?
  • 16:33 - 16:34
    I think so.
  • 16:35 - 16:38
    So, let me -- and you can make
    adjustments to this so it will just --
  • 16:41 - 16:47
    -- all right, in real time,
    it'll not ruin the --
  • 16:47 - 16:53
    and I forgot to add spinning animation
    or rotation animation on this.
  • 16:53 - 16:56
    But that's fine, it's for the
    Path Animation lesson anyway.
  • 16:56 - 16:58
    So, there it is.
  • 16:58 - 17:03
    We do have the follow checked, so at least
    the ball is following the orientation.
  • 17:04 - 17:07
    It's still pretty close there,
    but you get the point.
  • 17:08 - 17:08
    All right?
  • 17:09 - 17:12
    Then, right there, I'll just
    kind of -- all right.
  • 17:12 - 17:17
    So, again, Follow Path Animation using a parent
  • 17:17 - 17:20
    so you can have your independent
    animation on the ball and whatnot.
Title:
Blender 3D Absolute Beginner Follow Path Animation using Parents for Secondary Motion
Description:

more » « less
Video Language:
English (United States)
Duration:
17:23

English (United States) subtitles

Revisions