8. Distorting Objects with the Puppet Tools

Lesson overview

In this lesson, you’ll learn how to do the following:

  • Place Position pins using the Puppet Position Pin tool.

  • Deform an image using Advanced pins.

  • Define areas of overlap using the Overlap pins.

  • Manipulate rotation and scale using Bend pins.

  • Stiffen parts of an image using Starch pins.

  • Animate the position of puppet pins.

  • Record animation using the Puppet Sketch tool.

  • Animate facial expressions with Character Animator.

Decorative

This lesson will take about an hour to complete. If you haven’t already done so, download the project files for this lesson from adobepress.com/AfterEffectsCIB2022, following the instructions in the Getting Started section under “Accessing the lesson files and Web Edition.”

The logo of Blue Crab charter services shows the image of a crab and the company title placed below the image.

PROJECT: ANIMATED ILLUSTRATION

Pull, squash, stretch, and otherwise deform objects on the screen using the Puppet tools. Whether you’re creating realistic animations, fantastic scenarios, or modern art, the Puppet tools will expand your creative freedom.

Getting started

Using the Puppet tools in After Effects, you can add natural motion to raster images and vector graphics. Five tools create pins to define the points of deformation, areas of overlap, and areas that should remain more rigid. An additional tool, the Puppet Sketch tool, lets you record animation in real time. In this lesson, you’ll use the Puppet tools to animate a crab’s pincers in an advertisement.

Start by previewing the final movie and then setting up the project.

  1. Make sure the following files are in the Lessons/Lesson08 folder on your hard disk, or download them from adobepress.com now:

    • In the Assets folder: crab.psd, text.psd, Water background.mov

    • In the Sample_Movie folder: Lesson08.mp4

  2. Open and play the Lesson08.mp4 sample movie in Windows Movies & TV or QuickTime Player to see what you will create in this lesson. When you are done, close Windows Movies & TV or QuickTime Player. You may delete the sample movie from your hard disk if you have limited storage space.

    When you begin this lesson, restore the default application settings for After Effects. See “Restoring default preferences” on page 3.

  3. Start After Effects, and then immediately hold down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (macOS). When prompted, click OK to delete your preferences. Click New Project in the Home window.

    After Effects opens to display a blank, untitled project.

  4. Choose File > Save As > Save As.

  5. In the Save As dialog box, navigate to the Lessons/Lesson08/ Finished_Project folder.

  6. Name the project Lesson08_Finished.aep, and then click Save.

Importing footage

You’ll import two Adobe Photoshop files and a background movie.

  1. Choose File > Import > File.

  2. Navigate to the Lessons/Lesson08/Assets folder. Press Ctrl or Command to select the crab.psd and Water background.mov files. Then click Import or Open. The assets appear in the Project panel.

  3. Double-click an empty area in the Project panel to open the Import File dialog box again. Select the text.psd file in the Lessons/Lesson08/Assets folder.

  4. Choose Composition – Retain Layer Sizes from the Import As menu. (In macOS, you may need to click Options to see the Import As menu.) Then click Import or Open.

  5. In the Text.psd dialog box, select Editable Layer Styles, and click OK. The imported file is added as a composition to the Project panel; its layers are added in a separate folder.

    A dialog box titled, text. p s d and a project panel are shown.

Creating the composition

As with any project, you need to create a new composition.

  1. Click New Composition in the Composition panel.

    The composition panel highlights the option, new composition.
  2. Name the composition Blue Crab.

  3. Choose NTSC DV from the Preset pop-up menu. The preset automatically sets the width, height, pixel aspect ratio, and frame rate for the composition.

  4. In the Duration field, type 1000 to specify 10 seconds.

  5. Change the Background Color to a deep cyan color. (We used R=5, G=62, B=65.) Then click OK to close the Composition Settings dialog box.

    A dialog box titled, 'composition settings' is shown. The basic tab of the dialog box is selected. The tab lists a set of options from which the option, the background color is selected. From the color palette the option, deep cyan is selected. The ok button of the dialog box is enabled.

    After Effects opens the new composition in the Timeline and Composition panels.

Adding the background

It’s easier to animate the image in context, so first you’ll add the background to the composition.

  1. Press the Home key or move the current-time indicator to the beginning of the composition.

  2. Drag the Water background.mov file to the Timeline panel.

  3. Click the Lock icon (Decorative) for the layer to prevent accidental changes to it for now.

    The timeline panel of the blue crab composition shows the footage item water background dot m o v layer and the lock icon of the layer is highlighted. The corresponding composition panel displays the water background.

Animating imported text

The final movie includes two lines of animated text. Because you imported the text.psd file as a composition with layers intact, you can work on it in its own Timeline panel, editing and animating its layers independently. You’ll add an animation preset to each layer.

  1. Drag the text composition from the Project panel into the Timeline panel, placing it at the top of the layer stack.

    The timeline panel of the blue crab composition shows the layer, text selected, and stacked on top. The corresponding composition panel displays the text, Blue Crab, charter services at the bottom of the panel, and center-aligned.
  2. Double-click the text composition to open it in its own Timeline panel.

  3. Shift-click to select both layers in the text Timeline panel, and choose Layer > Create > Convert to Editable Text.

    Two timeline panels of the text composition showing the footage items illustrate converting layers to editable text.

    Now the text layers can be edited, so you can apply animation presets.

  4. Go to 3:00. Then deselect both layers, and select only the BLUE CRAB layer.

  5. In the Effects and Presets panel, search for the Fly In With A Twist animation preset. Then drag it onto the BLUE CRAB layer.

    Two panels are shown. The panel to the left shows the text timeline panel stacked with two layers. The blue crab layer below the charter services layer is highlighted. The effects and presets panel shows the option, fly in with a twist selected from the animation presets menu. An arrow from the option, fly in with a twist points to the blue crab layer in the text timeline panel.

    By default, the animation preset lasts just over two and a half seconds, so the text will begin to fly in at 3:00 and finish at 5:16. After Effects adds the keyframes for the effect.

  6. Go to 5:21, and select the charter services layer.

  7. In the Effects and Presets panel, search for the Slow Fade On animation preset. Then drag it onto the charter services layer.

  8. Return to the Blue Crab Timeline panel, and move the current-time indicator to the beginning of the time ruler. Press the spacebar to preview the animation. Press the spacebar again to stop playback.

    Three composition panels are shown. The first panel shows the text Blue animated with, fly in with a twist animation preset. The second panel shows the text, charter services animated with a slow fade on animation preset, and the third panel displays the text, Blue Crab followed by charter services placed at the bottom and center-aligned.
  9. Choose File > Save to save your work so far.

Scaling an object

Next, you’ll add the crab. You’ll animate it so that it fills the screen at the beginning of the movie, and then quickly shrinks and moves into position above the area where the text will appear.

  1. Drag the crab.psd file from the Project panel to the top layer in the Timeline panel.

  2. Press the Home key to move the current-time indicator to the beginning of the time ruler.

  3. Select the crab.psd layer in the Timeline panel, and press S to display its Scale property.

    A text timeline panel and a corresponding composition panel are shown. In the text timeline panel, the layer, crab. p s d is highlighted and a scale menu bar below the layer is displayed with the scale value set to 100.0 percent. The corresponding composition panel displays the image of a crab. The image size fits the screen.
  4. Change the Scale value to 400%.

  5. Click the stopwatch icon (Decorative) next to Scale to create an initial keyframe.

  6. Move to 2:00, and change the Scale to 75%.

    A text timeline panel and a corresponding composition panel are shown. In the text timeline panel, the layer, crab. p s d is highlighted and a scale menu bar below the layer is displayed with the scale value set to 75.0 percent. The corresponding composition panel displays the image of the crab scaled appropriately.

    The crab scales appropriately, but its position isn’t quite right.

  7. Press the Home key to return to the beginning of the time ruler.

  8. Press P to display the layer’s Position property, and change the Position to 360, 82. The crab moves up to fill the composition.

  9. Click the stopwatch icon next to Position to create an initial keyframe.

  10. Go to 1:15, and change the Position to 360, 228.

  11. Go to 2:00, and change the Position to 360, 182.

  12. Drag the current-time indicator across the first two seconds of the time ruler to see the crab animation.

    The crab animation is shown across three composition panels and the third panel highlights the crab position moved up to fill the composition.
  13. Hide the properties for the crab.psd layer, and choose File > Save.

About the Puppet tools

The Puppet tools turn raster and vector images into virtual marionettes. When you move a string on a marionette, the body part attached to that string moves; pull the string attached to the hand, and the hand goes up. The Puppet tools use pins to indicate where strings would be attached.

The Puppet effect deforms parts of an image based on the positions of pins that you place and animate. These pins determine which parts of the image should move or rotate, which parts should remain rigid, and which parts should be in front when areas overlap.

There are five kinds of pins, each placed by a different tool:

  • The Puppet Position Pin tool (Decorative) places and moves Position pins, which change the position of specific points in an image.

  • The Puppet Starch Pin tool (Decorative) places Starch pins, which stiffen parts of the image so that they are distorted less.

  • The Puppet Bend Pin tool (Decorative) places Bend pins, which let you change the rotation or scale of part of an image without changing its position.

  • The Puppet Advanced Pin tool (Decorative) places Advanced pins, which give you complete control over rotation, scale, and position.

  • The Puppet Overlap Pin tool (Decorative) places Overlap pins, which indicate the parts of an image that should be in the front when areas overlap.

Note icon. Note

The mesh is calculated at the frame where the Deform pins are applied. If you add more pins anywhere in the timeline, they are placed based on the original position of the mesh.

As soon as you place a pin, the area within an outline is automatically divided into a mesh of triangles. Each part of the mesh is associated with the pixels of the image, so as the mesh moves, so do the pixels. When you animate a Position pin, the mesh deforms more in the area closest to the pin, while keeping the overall shape as rigid as possible. For example, if you animate a pin in a character’s hand, the hand and arm will be deformed, but most of the character will remain in place.

Adding Position pins

Position pins are the basic component of the Puppet effect. Where you place these pins and how you position them determine how the objects move on the screen. You’ll place Position pins and display the mesh that After Effects creates to determine the area of influence for each pin.

When you select the Puppet Position Pin tool, the Tools panel displays the Puppet tool options. Each pin has its own properties in the Timeline panel, and After Effects automatically creates an initial keyframe for each pin.

  1. Select the Puppet Position Pin tool (Decorative) in the Tools panel.

    A tool panel is shown and from the options, the puppet position pin tool is selected.
  2. Go to 1:27, just before the crab scales down to its final size.

  3. In the Composition panel, place a Position pin in the middle of the crab’s left pincer.

    A yellow dot representing the Position pin appears in the Composition panel. If at this point you were to use the Selection tool (Decorative) to move the Position pin, the entire crab would move with it. You need more pins to keep the other parts of the mesh in place.

  4. Using the Puppet Position Pin tool, place another Position pin in the middle of the right pincer.

    Two composition panels with the crab image show the pin positions. The first panel shows the pin positioned on the left claw and the second panel shows the pin positioned on the right claw.

    Now you can move a pincer with the Selection tool. The more pins you place, the smaller the area of influence for each pin, and the less each area will stretch.

  5. Select the Selection tool (Decorative), and drag one of the Position pins to see its effect. Then return it to its original position by pressing Ctrl+Z (Windows) or Command+Z (macOS).

    Three composition panels illustrate the change of positions using the puppet position pin tool. The first panel shows the cursor pointing to the pin tool placed on the left claw of the crab. The second panel shows the change in the position of the crab's left claw. The third panel shows the left claw in its original position.
  6. Select the Puppet Position Pin tool again, and then place additional Position pins at the top of each antenna, at the end of each side leg, and at the tip of each of the crab’s swimming legs.

    Three composition panels show the pin tool placed at different points on the image. The first panel shows a pin tool placed on the right eye of the crab. The second panel shows the pin placed on the tip of the first walking leg on the right. The third panel shows a pin placed on the tip of the swimming leg on the right.
  7. In the Timeline panel, expand the Mesh 1 > Deform properties. Each Position pin is listed.

Adding Advanced and Bend pins

You can move Advanced pins in the same way that you move Position pins. But you can also use them to rotate and scale the area of the image. You’ll replace the Position pins in the pincers with Advanced pins. Bend pins don’t affect position, but they do let you rotate or scale an area while keeping it in place. You’ll add Bend pins to the middle of the crab’s swimmer legs. Then, you’ll display the mesh that After Effects creates to determine the area of influence for each pin.

  1. Select the Selection tool in the Tools panel. Then, select and delete each of the Position pins in the pincers.

  2. Select the Puppet Advanced Pin tool (Decorative), hidden beneath the Puppet Position Pin tool in the Tools panel.

  3. Place an Advanced pin in the middle of the left pincer, and then place another one in the middle of the right pincer.

    Three composition panels illustrate using the puppet advanced pin. The first panel shows an advanced pin placed on the left pincer of the crab image. The second panel shows the advanced pin appearing as a dot surrounded by a ring on the left pincer. The third panel shows the advanced pin placed on the right pincer of the crab.

    Advanced pins appear as dots surrounded by rings. To scale an area, drag the box in the ring outward or inward. To rotate an area, drag the ring itself clockwise or counter-clockwise. You’ll use the Advanced pins to animate the pincers.

  4. Select the Puppet Bend Pin tool (Decorative), hidden beneath the Puppet Advanced Pin tool in the Tools panel.

  5. Place a Bend pin in the middle of the crab’s left swimmer leg, and then place another one in the middle of the right swimmer leg.

    Three composition panels with the crab image illustrate applying the bend pin tool.

    Depending on the type of animation you’re performing, you may want to name the pins. In this case, you’ll name just the pincer and antenna pins.

  6. In the Timeline panel, select Puppet Pin 13, press Enter or Return, and rename the pin Left Pincer. Press Enter or Return again to accept the new name.

    A text timeline panel and a corresponding composition panel are shown.
  7. Hide the pins’ properties. Then, rename the corresponding pins Right Pincer, Left Antenna, and Right Antenna. (They’re probably Puppet Pins 14, 3, and 4, respectively.) The default pin names are numbered in the order they were created. You do not need to name the pins on the legs unless you want to.

    Two text timeline panels show the expanded version of the layer, mesh 1.
  8. Select Show in the options section of the Tools panel to display the distortion mesh.

    The crab is nearly the same color as the triangles in the mesh, so you’ll need to change the mesh color. The mesh takes its color from the layer’s color label.

  9. In the Timeline panel, click the color label next to the Crab.psd layer, and then choose a contrasting color, such as red or purple.

    Tip icon. Tip

    You can extend the mesh beyond the outline of the layer in order to ensure a stroke is included in the deformation. To expand the mesh, increase the Expansion property in the options section of the Tools panel.

  10. Select Mesh 1 in the Crab.psd layer to display the mesh again.

  11. Change the Density value in the options section of the Tools panel to 12. You may need to select Mesh 1 to see the mesh again.

    The Density setting determines how many triangles are included in the mesh. Increasing the number of triangles results in a smoother animation, but also increases rendering time.

    A toolbar panel highlights the density set to 12 and the corresponding composition panel shows the crab image with the set density.
  12. Choose File > Save to save your work so far.

Stiffening an area

The pincers, legs, and antennae of the crab will move in the animation, but the carapace should stay firm. You’ll use the Puppet Starch Pin tool to add Starch pins to ensure the carapace isn’t affected by the pins’ movements.

  1. Select the Puppet Starch Pin tool (Decorative), which is hidden behind the Puppet Bend Pin tool in the Tools panel.

  2. If the mesh isn’t showing, select Show in the options area of the Tools panel to display it.

  3. Place Starch pins at the base of each pincer, leg, and antenna to stiffen the entire carapace, as in the image below.

    Two composition panels illustrate the placing of the puppet starch pin tool. The panels show the pins placed at the base of each pincer, leg, and antenna.
  4. Hide the properties for the crab.psd layer in the Timeline panel.

  5. Choose File > Save to save your work so far.

Animating pin positions

The pins are in place. Now you can change them to animate the crab. The Starch pins keep specific areas (in this case, the carapace) from moving too much.

When you placed the pins, After Effects created initial keyframes for each pin at 1:27. You’ll animate the pins so that the crab waves its pincers, legs, and antennae, and then returns to its original position.

  1. Select the crab.psd layer in the Timeline panel, press U to display all the keyframes for the layer, and select the Puppet effect to make the puppet pins visible.

  2. Select the Selection tool in the Tools panel. Then go to 4:00, and select the Advanced pin on the left pincer. Drag the ring around it to the left to rotate the pincer outward, and then drag the center pin so that the pincer is almost vertical. Repeat the steps (but dragging the ring to the right) for the right pincer.

    Three composition panels show the crab image visible with all the pin tools positioned.
  3. Go to 5:00, and move the Left Pincer and Right Pincer pins so that the pincers are further apart and turn them outward. Then drag the small rectangle on each ring outward to bloat the pincers slightly.

    Three composition panels show the changed positions of the left and right pincers using an advanced pin tool. The first panel shows the pin tool at the left pincer being dragged The second panel shows the pin tool at the right pincer being dragged. The third-panel points at the ring of the pin tool on the right pincer.
  4. At 6:19, turn the pincers back inward. Then, at 8:19, position them so that they’re roughly vertical again. At 9:29, reduce the pincers’ scale back to their original size, and move the pincers so that they’re fully turned inward.

  5. Move the current-time indicator across the time ruler to see the pincers wave.

    Next, you’ll move the antennae closer together. The first keyframe already exists, so you need to create only one more.

  6. Go to 7:14, and pull the pins on the antennae closer to each other.

    Now you can animate all the legs. You want them to start moving even before the pincers do, and they should wave around a bit.

  7. Go to 1:19, and move the pin on each leg so that each leg is slightly longer and curved outward. Use the Bend pin on each of the swimmer legs to scale each leg slightly larger.

  8. Make changes to each leg at 2:01, 4:00, 6:17, and 8:10 so that the legs move slightly upward or downward, in and out as the video progresses. Move each pin about the same amount each time, in whatever direction you choose. At 8:10, use the Bend pins to return the swimmer legs to their original size.

  9. Hide the properties for the crab.psd layer. Then press F2 or click an empty area of the Timeline panel to deselect all layers. Then, press the Home key or move the current-time indicator to the beginning of the time ruler.

  10. Press the spacebar to preview your animation. Press the spacebar again to stop playback. If you want to change the animation, adjust pins at each keyframe.

    A set of 3 composition panels show a preview of images of the crab with the animated effects.
    A set of 6 composition panels show a preview of images of the crab with the animated effects.
  11. Choose File > Save to save your animation.

Using the Puppet tools to animate video

You’ve used the Puppet tools to animate an image on a layer, but you can also use them to warp or create other special effects on video layers. You’ll use Advanced pins to make the water swirl.

  1. In the Timeline panel, click the Lock icon to unlock the Water background.mov layer so you can edit it.

  2. Go to 4:00, where you can see the water clearly.

  3. Select the Water background.mov layer.

  4. Select the Puppet Advanced Pin tool in the Tools panel, and then create two Advanced pins in the water on either side of the crab and one each above and below it.

  5. Deselect Show in the Tools panel so you can see the water clearly.

  6. Rotate each pin to create waves in the water. You’ll probably need to scale and reposition the pins as well to ensure that the water reaches the edges of the scene. If you aren’t happy with the effect, you can delete the pins and start over.

    Three composition panels with the crab image show advanced pin tools in the water background placed on either side of the crab and one pin above the crab and one pin below the crab.
  7. Press the Home key or move the current-time indicator to the beginning of the time ruler. Then press the spacebar to preview the animation. Press the spacebar again to stop playback.

  8. Hide all properties in the Timeline panel, and then save the project.

Recording animation

Changing the position of each pin at each keyframe worked, but you probably found the process to be slow and tedious. Instead of manually animating keyframes, you can use the Puppet Sketch tool to drag the pins into position in real time. After Effects starts recording the motion as soon as you begin dragging a pin, and it stops recording when you release the mouse button. The composition moves forward through time as you move the pin. When you stop recording, the current-time indicator returns to the point at which you began recording, so that you can record the path for another pin during the same time period.

Experiment with this method of animation as you re-create the pincers’ movement using the Puppet Sketch tool.

Tip icon. Tip

By default, the motion is played back at the speed at which it was recorded. To change the ratio of recording speed to playback speed, click Record Options in the Tools panel, and change the Speed value before recording.

  1. Choose File > Save As > Save As, and name the project Motionsketch.aep. Save it in the Lesson08/Finished_Project folder.

  2. Move the current-time indicator to 1:27.

  3. In the Timeline panel, select the crab.psd layer, and press U to display all the keyframes for the layer.

  4. Scroll down to the Left Pincer and Right Pincer pins. Drag to select all keyframes for those pins after 2:08, and then delete the keyframes.

    Blue crab timeline panel with its corresponding panel showing the keyframes.
    The Blue crab timeline panel with its corresponding panel showing the keyframes.

    The animation for the other pins remains, but you’ve removed the keyframes that animate the pincers. Depending on where you placed Starch pins, the pincers may move slightly in response to other pins’ movements.

  5. Select the Puppet Position Pin tool (Decorative) in the Tools panel.

  6. In the Timeline panel, select Puppet to see the pins in the Composition panel, if they’re not already visible.

  7. Select the Left Pincer pin in the Composition panel, and press Ctrl (Windows) or Command (macOS) to activate the Puppet Sketch tool. (A clock icon appears next to the pointer.)

  8. Continue to hold down Ctrl or Command as you drag the Left Pincer pin into different positions for the length of the video. Release the mouse button when you’ve finished. The current-time indicator returns to 1:27.

    Note icon. Note

    The Puppet Sketch tool records changes in position, but not rotation or size.

  9. Press Ctrl or Command, and drag the Right Pincer pin into different positions. Use the outline of the crab and the other pincer’s movements to guide you. Release the mouse button to stop recording.

    Three composition panels illustrate recording changes in position using the puppet sketch tool.
  10. Preview the final animation.

    You’ve used the Puppet tools to create a realistic, engaging animation. Remember that you can use the Puppet tools to deform and manipulate many kinds of objects.

Review questions

1 What’s the difference between the Puppet Position Pin tool and the Puppet Advanced Pin tool?

2 When would you use the Puppet Starch Pin tool?

3 Describe two methods of animating pin positions.

Review answers

1 The Puppet Position Pin tool creates Position pins, which define the position of a por-tion of the image as the image is deformed. The Puppet Advanced Pin tool creates Advanced pins, which define the scale and rotation, as well as the position, of a portion of the image.

2 Use the Puppet Starch Pin tool to add Starch pins to an area that you want to remain more rigid while other areas of the object are distorted.

3 You can manually animate pin positions by changing the position for each pin in the Timeline panel. To animate pin positions more quickly, use the Puppet Sketch tool: With the Puppet Position Pin tool selected, press Ctrl or Command, and drag a pin to record its movement.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.199.182