Modelling Techniques · Chapter 5 of 6

Modelling: Shape Keys

Written for version 2.7.0

Store other shapes of one mesh and blend between them: making a key, editing it, mixing with the influence sliders, and New Key From Mix.

So far a mesh has had one shape: the one you modelled, smoothed or mirrored by its modifiers. A shape key gives the same mesh a second shape, and a slider that blends from the first to the second. A mouth that can smile, an eyelid that can close, a ball that can flatten when it lands, a crate that can look kicked in: each is one mesh with a key.

What a shape key is

A shape key stores, for every vertex of the mesh, how far that vertex moves from where it sits in the base mesh. Nothing else. The key has the same vertices, the same edges and the same faces as the base. Only the positions differ. The base itself is listed as Basis.

  • Because a key only moves the vertices that are already there, it cannot add a tooth or cut a hole. Build everything the shape needs into the base first, then make keys.
  • A vertex the key does not move costs nothing and stays exactly where the base has it.
  • Each key has an influence from 0 to 1. At 0 the key does nothing. At 1 every vertex has moved the whole way. At 0.5 each has moved half way, in a straight line.
  • Keys belong to the mesh. Two nodes that share one mesh share its keys and their sliders.
  • Curves and text have no Shape Keys section. A curve gets one after Convert to Mesh.

Make a key

Tap + in the Shape Keys heading and choose New Key. A Basis row and a block for the key appear. Rename gives the key a name. The mesh has not changed: a new key starts as a copy of the base.
  1. In Node mode, select the node that carries the mesh.
  2. Scroll the detail panel down past Modifiers to Shape Keys. Before the first key it reads No shape keys. The mesh is just its base.
  3. Tap + beside the heading and choose New Key.
  4. A block named Key appears under the Basis row, with its slider at 0.00.
  5. Tap Rename, type a name that says what the key does, and press return.
In the sectionWhat it is
BasisThe base mesh. It has no slider, because every key is measured from it
The sliderThe influence of the key, from 0.00 to 1.00, with the value beside it
EditOpens the key in Mesh mode so you can shape it
RenameTurns the name into a text box. Press return to keep the new name
DeleteRemoves the key at once. Whatever the other keys were doing carries on
  • A second new key is named Key.001, the next Key.002. Two keys on one mesh cannot share a name: rename one to a name that is taken and a number is added to it.
  • Delete does not ask first. Undo in the top bar brings the key back.
  • Adding, renaming, deleting and moving a slider are each a step for Undo.

Shape a key

A new key is empty. To give it a shape, open it with Edit and move vertices, exactly as you would edit the mesh. The difference is where the moves are stored: in the key, not in the base.

Tap Edit on the key. Mesh mode opens with a Shape Key banner at the top of the detail panel. Move the middle of the mouth down. Back in Node mode the mesh is the base again, until you raise the slider.
  1. Tap Edit on the block of the key.
  2. The mode selector switches to Mesh. The detail panel is headed Editing shape key on, followed by the name of the mesh, and a blue row reads Shape Key, the name of the key, and EDITING.
  3. Select vertices, edges or faces and drag. Move is already picked up, as it is whenever Mesh mode opens. Tap Rotate or Scale on the tool rail for the other two.
  4. Tap Node in the mode selector when the shape is right. There is nothing to confirm.
  5. Drag the slider of the key to see it.
  • While you edit a key the viewport shows that key at full strength and every other key switched off, whatever the sliders say. You are looking at exactly what you are editing.
  • When you tap Node, the sliders go back to what they were. If the key was at 0 the mesh returns to the base and your work seems to have vanished. It has not. Raise the slider.
  • The line under the banner says so: what you move shapes this key only, and the base mesh stays put.
  • Edit a key again at any time. It opens with the shape you left.
  • The Shape Keys section is not shown in Mesh mode, because the detail panel becomes the edit panel. Sliders, Rename, Delete and + are back when you return to Node mode.
  • If the mesh carries vertex colours, the Edit Mesh alert appears first, as it does for any mesh edit.

Editing the base instead

  • Tapping Mesh in the mode selector, or Edit Mesh in the Mesh section, edits the Basis. The viewport shows the base with every key off for as long as you are in Mesh mode, and puts the mix back when you tap Node.
  • Moving a vertex of the base takes every key with it. Each key keeps its own offset from the base, so widen the base of a face and its smile is still a smile, on the wider face.
  • This is the way to fix the model itself after the keys exist. Use Edit on a key only for what that key should do.

Mix keys with the sliders

Every key has its own slider and the keys add up. Each vertex starts at the base, then takes each key's move multiplied by that key's influence. Two keys that move different vertices simply both happen. Two that move the same vertex push it by both amounts.

A Smile key and a Blink key on one mesh. Each slider goes from 0.00 to 1.00, and the two add together: a full smile with the eyes shut, then half shut eyes with a slight smile.
  • Drag along a slider to set the influence. The number beside it shows two decimal places.
  • The order of the keys in the list makes no difference to the result.
  • Keep each key to one idea: one for the mouth, one for the eyelids. Small keys combine into many expressions. One key that does everything gives you one expression.
  • Keys that move the same vertices can overshoot when both are at 1. Lower one, or make a key for the combination.
  • The sliders are saved with the model. The mix you leave is the shape the rig has when it is next opened or placed in a scene.

New Key From Mix

When a mix of sliders gives a shape you want to keep, New Key From Mix stores it as a single key.

With Smile at 1.00 and Blink at 0.70, tap + and choose New Key From Mix. The new key holds that whole mix. Put the other two back to 0 and raise the new key: one slider now gives the same expression.
  1. Set the sliders to the mix you want.
  2. Tap + beside the heading and choose New Key From Mix.
  3. A new key appears at 0.00. The mesh does not change, because the keys you mixed are still raised.
  4. Lower the keys you mixed, then raise the new one.
  5. Tap Rename and give it a name.
  • The new key is a snapshot. Changing Smile afterwards does not change the key that was made from it.
  • If you raise the new key while the keys it was made from are still up, the moves are added twice.
  • It is also a quick way to start a variation: make a key from the mix, then Edit it and change only what should differ.

Adding and removing geometry

A key is tied to the vertices of the mesh, so what happens when the mesh gains or loses some matters. The editor keeps the keys in step through every mesh edit.

A crate with a Damaged key at 1.00. Tap Mesh: the viewport shows the base, undamaged. Cut a loop round it there. Back in Node mode the key still works, and the new loop leans with the rest of the crate.
Edit in Mesh modeWhat happens to the keys
Loop Cut, Subdivide Edge, BevelEach new vertex is given a place in every key, between the vertices it was made from
Extrude, DuplicateEach new vertex starts with the same key moves as the vertex it was copied from
Merge VerticesThe merged vertex takes the average, in every key
DeleteThe vertices go from every key. The rest are untouched
  • So you can keep modelling after the keys exist. The keys are not lost and do not need redoing.
  • Add and remove geometry on the base: tap Mesh in the mode selector, not Edit on a key. Geometry added while editing a key is added to the base as well, but only the key gives it its shape, so in the base it lies folded on top of where it came from.
  • A new vertex can only guess its place in each key from its neighbours. After a large change, open each key with Edit and check it.
  • Shade Smooth, Shade Flat and the Clean Up rows keep the keys too.
Apply removes shape keys

Applying a modifier is the one edit the keys do not survive. It replaces the vertices of the base with the vertices of the result, and the keys have nothing left to refer to. An Apply Modifiers alert warns that applying removes the shape keys. Apply Anyway carries on, Cancel leaves everything as it was.

Keys and modifiers

Keys come first and modifiers second. The mesh is mixed from its keys, and the modifiers then run on that mixed mesh. A Mirror mirrors the mixed half. A Subdivision smooths the mixed cage.

A cube with a Subdivision is a ball. Its Squash key moves only the eight corners of the cube, and the Subdivision smooths whatever the slider gives: a ball, a flattened ball, and everything between.
  • This is the best reason to keep a cage light. The Squash key above stores eight moves. The same key on the smoothed ball would have to store hundreds.
  • Make the keys on the cage and leave the Subdivision unapplied.
  • With a Mirror, a key shaped on your half appears on both sides. For a wink on one side only, the two sides have to be real geometry, which means applying the Mirror before any keys are made.
  • The preview button still decides whether the viewport shows the Subdivision. The key moves the cage either way.
Tap Apply on a modifier while the mesh has shape keys and the Apply Modifiers alert appears. Cancel keeps the keys. Apply Anyway applies the modifier and removes them.
  • Decide before you make keys whether a modifier needs applying. Apply first, then make the keys on the result.
  • Apply All raises the same alert.
  • The alert also names vertex colours if the mesh has them.

What keys are good for

UseThe baseThe key
A smileA mouth with a few segments along itThe middle of the mouth lowered, or the corners raised
A blinkAn eye, or an eyelid, openThe lid closed. Half way on the slider is a sleepy eye
A squashA ballFlattened and spread. Raise it for the frames where the ball hits the ground
DamageA prop as it left the factoryThe same prop bent or dented. One model serves for before and after
FitA sleeve, a strap, a hatA wider or longer version, to dial in on each character
  • Model the base in its relaxed, neutral state: mouth closed, eyes open, prop undamaged. Keys read most clearly as changes away from neutral.
  • Give the base enough edges where it will bend. A mouth that is one straight bar cannot curve. Four segments can.
  • A scene that uses the rig lists each key by name under Shape Keys, so a blink or a squash can change over time there.
  • A Value Driver or a Value Mix constraint can set the influence of a key from another value in the rig, so that turning a bone raises a key. Its target list has a Shape Keys group.
  • Variants, in the Selection Panel, are a different tool. A variant switches whole nodes on and off. A shape key moves the vertices of one mesh, by any amount in between.
Something unclear?

Tell us which key you were editing or mixing, what the sliders read, which mesh edit or modifier was involved, and what the mesh did instead. A screenshot of the viewport with the Shape Keys section helps.

Send Feedback