From BlenderWiki

Jump to: navigation, search

Shape Keys

Mode: Object mode

Panel: Shapes (Editing context, F9)

Shape keys store different shapes of a same object (mesh, curve, surface or lattice). In other 3D applications they are called “morph targets”, “blend shapes”, or even “vertex keys” in older versions of Blender. They are the only way to directly animate the shape of your object.

Shape keys are the specified positions of vertices or control points within an object. Since this can involve thousands of vertices for an object (especially a mesh), separate motion curves are not created for each vertex because it would overload your computer’s memory – and your own capabilities! A more generic keyed position system is used instead: a single (or a few) Ipo curve(s) is(are) used to determine how interpolation is performed and the times at which a shape key can be seen.

You can use them to directly animate a face, the folding of a sheet of paper, etc. But you can also use them as indirect animation tool – think for example in animating the shape of a curve used as bevel or taper for another one: this would allow you to animate a pumping artery, or a pulsing heart, or a growing worm, or balloon being inflated, or a tree growing… A scene in Elephant’s Dream, where worms started growing (just before Proog conks Emo) used animated bevels and tapers while the curves extended. Similarly, you can animate a lattice or mesh used (through modifiers) as a deforming cage for another object, or for particles…

And you have much much more possibilities!

Blender3D FreeTip.gif
Other Usages…
Shape keys can also be used for completely non-animated purposes. For example, you might create shape keys of your mesh to store some given states of work in its modeling (just remember that all shape keys have the same topology).


Description

An example of mixed relative shape keys.
The Shapes panel of meshes and lattices.
The Curve and Surface panel of… curves and surfaces.

A shape key stores the positions (in the local space, of course) of an object’s vertices/control points, which determine its “shape”. Blender features two types of shape keys, differing mainly by the way they are animated:

  • Relative shape keys have (by default) one key (the first one) as basis, and all others can be used to blend this basis with their own shapes (optionally limiting their effects to a given vertex group). Each of these “relative” shapes’ influence can be animated with its own Ipo curve, exactly as you would animate the influence of constraints. You will use them, for example, to create and animate a face’s expressions and movements.
An object has relative keys if the Relative button of its Shapes panel (for meshes and lattices), or the Relative Keys button of its Curve and Surface panel (for curves and surfaces!) is enabled.
  • Absolute shape keys are all “equal”. They always apply to the entire mesh and are used to “morph” the object from one shape to the next (i.e. you can only have at most two shapes affecting your object at the same time). Hence you only have one Ipo curve to control the animation (i.e. to control where in the shapes’ succession must be the object) – and you can even use no Ipo curve at all, getting a default morphing… You will use them, for example, to animate an origami creation, a flower growing…
An object has absolute keys if the Relative button of its Shapes panel (for meshes and lattices), or the Relative Keys button of its Curve and Surface panel (for curves and surfaces!) is disabled.

Whatever type of shape keys you use, their settings and animation properties are gathered in two main areas:

  • The Shapes panel (for meshes and lattices) or Curve and Surface panel (for curves and surfaces!) of the Editing context (F9).
  • The Ipo Curve Editor with the Shape Ipo type.
Exclamation mark.png
Note that:
  • A shape key (relative or absolute) simply defines a “final position” for a group of vertices: it does not say how fast the shapes are transitioned or in what order. You can make these keys in any order or speed you wish, and control the degree of influence (to make a “slight” smile, for example), using the familiar mechanism of Ipo curves.
  • Nearly everything possible with absolute shape keys can also be done with relative ones (the only exception seems to be the Slurph option…). So absolute shape keys might appear like a sort of “sub-set” of relative ones, using a different animation technique (see below).
  • You can’t have both absolute and relative shape keys on a same object – you have to choose one type!
  • You can safely switch between absolute and relative shape keys (neither their respective settings nor their respective Ipo curves will mess with each other).
  • With relative shape keys, you can have morph families. A morph family is a group of shapes related to an area of the object’s data. For example, take the face. You have the eyebrow area (possible shapes are “surprise”, “furrow”, “eyebrow lift-left”, and “eyebrow lift-right”), the eyelids (“blink”), the mouth (“smile”, “frown”), nose (“flare”, “wiggle”) and tongue (“ay”, “th”, “i”, “stickout”, “tunnel”). The “jaw open” action may be controlled by a bone. In this case you would add a vertex group for the eyebrow, another for the tongue, etc.
  • Shape keys are part of the ObData datablock (i.e. mesh, curve, etc.), not of the Object one. Thus, it is possible to permit multiple objects to share the same shape keys by simply making them use the same mesh (or curve, surface, etc.) datablock. This applies to both the shape keys themselves, and to their Ipo animation (i.e. Shape Ipo curves).
  • Unlike relative ones, absolute shape keys are always animated (see this page), even without any Ipo curve.

Workflow

The overall process for using shape keys in Blender is:

  1. Define your basis (or “rest”) shape.
  2. Identify the list of primitive morphs that you might want (for relative shapes keys) or the sequence of key shapes you need (for absolute shape keys).
  3. Optionally, create vertex groups for sets of vertices to participate in each morph family (relative shape keys only).
  4. Add your shapes (Object mode), and edit them (Edit mode).
  5. Using the Ipo curve(s), define when you want the target shape to influence the basis shape (for relative shape keys), or how the shapes succeed one to the next (for absolute shape keys).

When working on shape keys, you’ll likely want to have at least a 3D View, an Ipo Curve Editor and a Buttons window in your work space (use e.g. the Animation screen layout).

In the three next pages, we’re going to:



Introduction
What is Blender?
Introduction
Blender’s History
License
Blender’s Community
About this Manual
What's changed with Blender 2.4
Installing Blender
Introduction
Python
Installing on Windows
Installing on GNU/Linux
Installing on Mac
Installing on other Operating Systems
Configuring Blender
Directory Layout
Starting
The Interface
Introduction
Keyboard and Mouse
Window System
Arranging frames
Headers
Console window
Window Types
Screens (Workspace Layouts)
Scenes
Configuration
Modes
Contexts
Menus
Panels
Buttons and Controls
Internationalization
Your First Animation
1/2: A static Gingerbread Man
2/2: Animating the Gingerbread Man
The Vital Functions
Quick render
Undo and Redo
Default scene
Screenshots
Help!
Setting Preferences
Configuring Preferences
Interface
Editing
Themes
File
System
Interaction in 3D
Introduction
Introduction
Navigation
Introduction
3D View
3D View Options
3D View Usage
Camera View
Layers
Local or Global View
Sketch in 3D Space
Introduction to Grease Pencil
Drawing sketches
Layers and Animation
Converting sketches to geometry
Transformations
Introduction
Basics
- Grab/Move
- Rotate
- Scale
- Gestures
Advanced
- Mirror
- To Sphere
- Shear
- Warp
- Push/Pull
Transform Control
Introduction
Precision of Transformations
Numeric Transformations
Transform Properties
Reset Object Transforms
Manipulators
Transform Orientations
Axis Locking
Pivot Point
- Active object
- Individual Centers
- 3D Cursor
- Median Point
- Bounding Box Center
Snapping
Snap to Mesh
Proportional Edit
Data System and Files
Blender's Data System
Blender's Library and Data System
Blender's Datablocks
Scenes
Working with Scenes
The Outliner Window
Appending and Linking
File operations
Introduction
Opening blender files
Saving blender files
Modeling
Introduction
Introduction
Objects
Objects
Selecting Objects
Editing Objects
Groups and Parenting
Tracking
Duplication
- DupliVerts
- DupliFaces
- DupliGroup
- DupliFrames
Mesh Objects
Meshes
- Mesh Structures
- Mesh Primitives
Selecting
- Selectable Elements
- Selection Basics
- Advanced Selecting
- Selecting Edges
- Selecting Faces
Editing
Basic Editing
- Translation, Rotation, Scale
- Adding Elements
- Deleting Elements
- Creating Faces and Edges
- Mirror editing
Vertex Editing
Edge Editing
Face Editing
Deforming Tools
- Mirror
- Shrink/Fatten Along Normals
- Smooth
- Noise
Duplicating Tools
- Duplicate
- Extrude
- Extrude Dup
- Spin
- Spin Dup
- Screw
Subdividing Tools
- Subdivide
- Subdivide fractal
- Subdivide smooth
- Loop Subdivide
- Knife Subdivide
- Bevel
Miscellaneous Tools
Retopo Tool
Sculpt Mode
Multi Resolution Mesh
Vertex Groups
Weight Paint
Mesh Smoothing
Curve Objects
Curves
Selecting
Editing
Advanced Editing
Surface Objects
Surfaces
Selecting
Editing
Text Objects
Texts
Editing
Meta Objects
Metas
Editing
Empty Objects
Empties
Group Objects
Groups
Scripts
Modeling Scripts
Modifiers and Deformation
Introduction
Introduction
Modifiers Stack
Modify
UVProject
Generate
Array
Bevel
Booleans
Build
Decimate
EdgeSplit
Mask
Mirror
Subsurf
Deform
Armature
Cast
Curve
Displace
Hooks
Lattice
MeshDeform
Shrinkwrap
SimpleDeform
Smooth
Wave
Simulate
Cloth
Collision
Explode
Fluid
Particle Instance
Particle System
Soft Body
Lighting
Introduction
Introduction
Lights
Introduction
Light Properties
Light Attenuation
Light Textures
What Light Affects
Lights In Other Contexts
Shadows
Introduction
Shadow Properties
Raytraced Shadow Properties
Volumetric Lights
Introduction
Lamps
Introduction
Lamp Light
- Raytraced Shadows
Spot Light
- Raytraced Shadows
- Buffered Shadows
- Halos
Area Light
- Raytraced Shadows
Hemi Light
Sun Light
- Raytraced Shadows
- Sky & Atmosphere
Lighting Rigs
Radiosity
Introduction
Rendering
Baking
Scene Light
Ambient Light
Ambient Occlusion
Exposure
Exposure
Materials
Introduction
Introduction to Shading
Materials Introduction
Usage
Assigning a material
Material Preview
Material Options
Multiple Materials
Properties
Diffuse Shaders
Specular Shaders
Ambient Light Effect
Color Ramps
Raytraced Reflections
Raytraced Transparency
Subsurface Scattering (SSS)
Strands
Node Materials
Material Nodes
Nodes Editor
Node Controls
Nodes usage
Nodes Groups
Material Node Types
- Input Nodes
- Output
- Color
- Vector
- Convertor
- Dynamic
Vertex Paint
Using Vertex Paint
Halos
Halos
Textures
Introduction
Introduction
UV/Image Editor
Common Options
Texture Stack
Texture Types
Texture Types
Procedural Textures
Image Textures
Video Textures
Texture Nodes
- Nodes Editor
- Node Controls
- Nodes usage
- Nodes Groups
-- Textures Input Nodes
-- Textures Output Nodes
-- Textures Color Nodes
-- Textures Patterns Nodes
-- Textures Textures Nodes
-- Textures Convertor Nodes
-- Textures Distort Nodes
Texture Plugins
Texture Painting
Painting the Texture
- Projection Paint
Mapping
Mapping
Environment Maps
UV Unwrapping Explained
- Unwrapping a Mesh
- Managing the UV Layout
- Editing the UV Layout
- Applying an Image
Influence
Influence
- Material
-- Bump and Normal
-- Displacement
- Particles
- World
World and Ambient Effects
World
Introduction
World Background
Ambient Effects
Mist
Stars
Rigging
Introduction
Introduction to Rigging
Armatures
Armature Objects
Panels overview
Bones
Visualization
Structure
Selecting
Editing
- Bones
- Properties
- Sketching
- Templating
Skinning
Introduction
Linking Objects to Bones
Skinning to Objects’ Shapes
Retargeting
Posing
Introduction
Visualization
Editing Poses
Pose Library
Using Constraints
Inverse Kinematics
Constraints
Introduction
Introduction
Constraints Common Interface
Constraints’ Stack
Transform Constraints
Copy Location
Copy Rotation
Copy Scale
Limit Distance
Limit Location
Limit Rotation
Limit Scale
Transformation
Tracking Constraints
Clamp To
IK Solver
Locked Track
Stretch To
Track To
Relationship Constraints
Action
Child Of
Floor
Follow Path
Null
Rigid Body Joint
Script
Shrinkwrap
Animation
Introduction
Introduction
The Timeline
Markers
3D Views
Animation Editors
Animation Editors
Ipo Editor
Ipo Curves and Keyframes
Ipo Datablocks
Ipo Types
Ipo Editor Interface
Editing
- Ipo Curves
- Keyframes
Ipo Drivers
Action Editor
Editing Action Channels
NLA Editor
Editing NLA Strips
Strip Modifiers
Animation Techniques
Introduction
Animating Objects
- Using Constraints
- Moving Objects on a Path
Animating Shapes
- Shape Keys
- Editing Shape Keys
- Animating Shape Keys
- Shape Keys Examples
Indirect Shape Animation
Animating Armatures
- Stride
Animating Lamps
Animating Cameras
Animating Materials
Animating Textures
Animating World
Physical Simulation
Introduction
Introduction
Dynamics
Force Fields
Collisions
Particles
Particles
Types
Physics
- Newtonian
- Keyed
- Boids
Visualization
Controlling Emission, Interaction and Time
Cache & Bake
Hair
Children
Vertex Groups
Particle Mode
Soft Body
Introduction
Exterior Forces
Interior Forces
Collisions
Simple Examples
Combination with Armatures
Combination with Hair Particles
Reference
Cloth
Introduction
Fluids
Fluid
Using the Game Engine
Using the Game Engine
Rendering
Introduction
Introduction
Camera
The Camera
Perspective (Vanishing points)
Depth Of Field
Render
Displaying Renders
Basic Options
Antialiasing (Oversampling)
Rendering Animations
Panoramic
Render Baking
Using the Command Line
Output
Output
Video Output
Effects and Post Processing
Introduction
Render Layers
Render Passes
Edges & Toon
Stamp
Color Management & Exposure
Depth Of Field
Motion Blur
Render Performance
Rendering Performance
Distributed Rendering
External Render Engines
Introduction
YafRay
Compositing with nodes
Composite Nodes
Introduction
Nodes Editor
Node Controls
Nodes usage
Nodes Groups
Composite Node types
Composite Node types
Input Nodes
Output Nodes
Color Nodes
Vector Nodes
Filter Nodes
Convertor Nodes
Matte Nodes
Distortion Nodes
Editing Sequences
Introduction
Introduction
The sequencer
Usage
Sequencer Modes
Sequence Screen Layout
Effects
Built-in Effects
Plugin Effects
Audio
Audio Sequences
Extending Blender
Introduction
Introduction
Python Scripting
Python Scripting in Blender
Setting up Python
The Text Editor
A working example
References
Python Scripts
Script Catalog
Bundled Scripts
Plugins
Blender's Plugins System
Texture plugins specifications
Sequence plugins specifications
Game Engine
Introduction
Introduction
The Logic Editor
Usage
Game Properties
Sensors
Introduction
Sensor Types
Controllers
Introduction
Expressions
Actuators
Introduction
Action
Camera
CD
Constraint
Edit Object
Ipo
2D Filters
Game
Message
Motion
Parent
Property
Random
Scene
Shape Action
Sound
State
Visibility
Cameras
Cameras
Dome Camera
Physics
Physics Engine
Material Physics
Object Types
- Static
- No Collision
- Dynamic
- Rigid Body
- Soft Body
- Occluder
- Sensor
Python API
Bullet physics
VideoTexture
Various resources
List of Features
External resources
Game Engine Basics (BSoD Tutorial)
FAQ