Sub topic 11
Selecting and editing keyframes
This chapter assumes you can insert keyframes, open the Dope Sheet, and read its channel list and summary row from earlier chapters. It also assumes the default Blender 2.8+ keymap, where left-click selects. The shortcuts below are the Dope Sheet defaults in Blender 4.x.
What you are really editing
A keyframe in the Dope Sheet is a diamond at a frame number in one F-curve. Selecting a diamond marks that key as the target of the next operator. Every edit in this chapter follows the same pattern: select keys, run an operator, check the result.
The Dope Sheet only moves keys along the time axis. It has no vertical value axis, so you cannot change a key's value here. That is the Graph Editor's job, covered in a later chapter.
Selecting keyframes
You can select in several ways, and the right one depends on how many keys you need and where they sit.
| Action | Shortcut |
|---|---|
| Select one key | Click |
| Add or remove one key from the selection | Shift+click |
| Box select | Drag in empty space, or B |
| Select all | A |
| Deselect all | Alt+A |
| Invert selection | Ctrl+I |
| Select all keys before or after the current frame | [ and ] |
| Select all keys on the same frames as the selected keys | K |
| Select all keys on the current frame | Ctrl+K |
The column selectors are the most useful once you have several channels. Selecting one diamond and pressing K picks every key sharing its frame across all visible channels. This is how you grab a whole pose at one time.
Clicking a diamond in the summary row, or in a group row, selects the keys beneath it at that frame. A single click can therefore select dozens of keys. This is a convenience when you want to move a whole pose and a trap when you meant to touch one channel.
Selection only applies to what is visible
The Dope Sheet filters its channels. If Only Show Selected is on, which is the default, keys on unselected objects are not shown and are not edited. Collapsed groups still pass edits to their children, but channels hidden by a name filter or by Only Show Errors do not take part. When an edit seems to ignore some keys, check these filters before suspecting a bug.
Locked channels, shown with the padlock icon in the channel list, can be selected but not edited. If G does nothing on a visible key, look for a lock.
Moving, scaling, and duplicating
With keys selected, hover over the key area and use these operators.
- G (Grab) moves keys in time. Type a number to move by exactly that many frames:
G,10,Entershifts the keys 10 frames later, and-10shifts them earlier. - S (Scale) stretches or compresses the spacing between keys. The scale is centered on the current frame, not on the selection.
- Shift+D duplicates the selected keys and starts a grab, so you can place the copy right away.
- E (Extrude) creates a copy of the keys and moves them, which can be used to repeat a pose at a later frame.
- X deletes after a confirmation. The Delete key deletes immediately.
The pivot rule for scaling surprises most learners. Suppose keys sit at frames 10, 20, and 30, and the playhead is at frame 1. Scaling by 2 sends them to 19, 39, and 59, because their distance from frame 1 doubled. To scale around the first key instead, set the playhead on that key first.
Snapping and sub-frame keys
By default, transforms in the Dope Sheet snap to whole frames. In Blender 4.x the magnet icon in the header controls this, and holding Ctrl during a transform toggles it temporarily. With snapping off, keys can land on fractional frames such as 12.37. They play back, but they are awkward to select and align later. To fix them, select the keys and use Key > Snap > Selection to Nearest Frame, or Shift+S for the snap menu.
Copying and pasting
Copy selected keys with Ctrl+C. Paste with Ctrl+V. Pasted keys are offset so that the first copied key lands on the current frame, so you set the playhead before pasting.
Paste matches keys to channels by name and data path. A copy of location keys pastes onto another object's location channels if both are visible. Shift+Ctrl+V pastes a mirrored version, which swaps left and right bones in a rig and flips values on channels such as X location.
The paste operator's options, shown in the Adjust Last Operation panel, decide what happens to existing keys. Offset controls where the pasted block starts. Merge controls whether it mixes with, overwrites, or replaces the existing keys in the pasted range. Check this panel immediately after pasting. It disappears once you run another operator.
Changing interpolation and key type for a selection
Selected keys can be changed in bulk.
- T opens the interpolation menu: Constant, Linear, Bézier, and others.
- R opens the keyframe type menu: Keyframe, Breakdown, Moving Hold, Extreme, Jitter.
- V sets handle type, which matters for Bézier keys.
Interpolation is stored on the key at the start of a segment and governs the motion up to the next key. Changing a key's interpolation therefore changes the segment after it, not the one before it. If the last key in a channel has a different interpolation, nothing visibly changes, because there is no following segment.
Scripting the same edit
The same move can be done in Python. This script shifts all keys on the active object's action 10 frames later. It moves each key and its two handles together. If it moved only co, the Bézier handles would stay behind and the curve shape would change.
import bpy
obj = bpy.context.active_object
action = obj.animation_data.action
offset = 10.0
for fcurve in action.fcurves:
for keyframe in fcurve.keyframe_points:
keyframe.co.x += offset
keyframe.handle_left.x += offset
keyframe.handle_right.x += offset
fcurve.update()This uses the F-curve access found in Blender 2.8 through 4.x. Newer versions with layered actions may expose F-curves differently.
Common errors
- The edit moved nothing. The keys are in a locked or filtered-out channel, or the mouse was not over the key area when you pressed the shortcut.
- Scaling produced wild results. The playhead was far from the keys, so the pivot was far away.
- Keys vanished after a move. They were dropped onto existing keys and replaced them. Undo with Ctrl+Z.
- A group row move changed too much. A group-row diamond stands for every channel inside the group. Expand the group and select a single channel's keys when you want a narrow edit.
- Keys sit at odd fractions. Snapping was off during a move. Use Snap > Selection to Nearest Frame.
Exercise
An object has location keys at frames 10, 20, and 30. The playhead is at frame 10. You select all three keys and scale them by 2. At which frames do the keys end up, and how would you scale them around frame 20 instead?
Show answer
The keys end up at frames 10, 30, and 50. Scaling is centered on the current frame, and frame 10 is the pivot, so each key's distance from frame 10 doubles. To scale around frame 20, move the playhead to frame 20 first. Then the keys end up at 10, 20, and 30 stretched about that point, so they land at 0, 20, and 40.
Exercise
You select a diamond in the summary row at frame 15 and press G, then type 5 and press Enter. Which keys move, and by how much?
Show answer
Every key at frame 15 on the visible, unlocked channels moves to frame 20. The summary row represents all channels shown in the editor, so one diamond controls all keys at that frame.