Sub topic 5
Selecting and Transforming Keyframes and Handles
This chapter covers how to select keyframe points and their Bezier handles in the Graph Editor, and how to move, rotate and scale them. It assumes you can navigate the Graph Editor, read the channel list, and insert keyframes with I. Handle types and interpolation get their own chapters. Here the focus is on the selection and transform tools that you use before you shape a curve.
What you are actually selecting
An F-curve is made of keyframe points. Each Bezier keyframe point has three selectable parts:
- The control point, which sits on the curve at a frame and a value.
- The left handle, which controls the curve shape coming into the key.
- The right handle, which controls the curve shape leaving the key.
Each part has its own selection state. Selecting only the control point and then moving it drags the handles along, because a selected control point moves its handles with it. Selecting only a handle moves just that handle and changes the curve's shape without changing the key's frame or value.
Keys on non-Bezier curves (Constant or Linear interpolation) have no visible handles to select, but they still have a control point.
Selecting keyframes
Selection works on points that are visible and unlocked. Hidden channels and locked channels cannot be selected or transformed, which is a common reason for a click that appears to do nothing.
| Action | Default shortcut |
|---|---|
| Select one key or handle | Left click |
| Add to or remove from selection | Shift + click |
| Box select | B, or drag in empty space with the Select Box tool |
| Select all | A |
| Deselect all | Alt + A |
| Invert selection | Ctrl + I |
| Select keys before or after the current frame | Select menu, Columns on Current Frame and related entries |
| Select a whole curve | Double-click a key, or click the curve |
Clicking a key selects its control point and both handles together. To pick a handle alone, click the handle itself. Shortcuts vary by keymap and Blender version, so check the Select menu in your own build if one does not respond.
Box select and the handle toggle
Box select picks whatever lies inside the box. If you want only control points and no handles, turn off the handle display in the View menu with Show Handles (Ctrl + H). Handles that are not displayed cannot be selected. This is the simplest way to select many keys without accidentally grabbing handle ends.
Only Show Selected
The Only Show Selected toggle in the header limits the editor to channels of objects (or bones) you have selected in the 3D Viewport. If a curve you expect is missing, check this toggle before assuming something is wrong with the data.
Selecting by channel
Clicking a channel name in the list selects that channel. Double-clicking a channel selects all of its keyframes. With several channels selected, a transform acts on every selected key across all of them at once. Combine this with hiding other channels to isolate what you want to edit.
Transforming with grab, rotate and scale
The three transform operators use the same keys as in the 3D Viewport, but they act on points in a 2D space where the horizontal axis is time (frames) and the vertical axis is the property value.
| Operator | Key | What it does to the selection |
|---|---|---|
| Grab (move) | G | Moves in time and value |
| Rotate | R | Rotates points around the pivot |
| Scale | S | Scales points relative to the pivot |
While a transform is active you can type a number. For example, G then 12 then Enter moves the selection 12 frames in time. G then Y then 0.5 then Enter moves the selection by 0.5 units of value.
Constraining to one axis
Press X during a grab to lock movement to time only, or Y to lock it to value only. This is the most useful habit in the editor. Moving a key in time changes when something happens. Moving it in value changes how far it goes. Keeping them separate prevents accidental changes to the other.
A second press of the same axis key follows the same behavior as in the 3D Viewport transform system, so if a result looks odd, press the key once more or cancel with Esc or right click.
Scale and the pivot
Scaling keys depends on the pivot point, set in the header (Pivot Point menu):
- Bounding Box Center scales around the middle of the selection.
- 2D Cursor scales around the playhead frame and the cursor's value.
- Individual Centers scales each selected key around itself, which mostly affects handles.
A practical use: select every key in a curve, set the pivot to the 2D Cursor, place the cursor on the value you want to scale around, and press S then Y. Values stretch away from or toward that level. Scaling in time with S then X retimes a whole sequence, which speeds it up or slows it down.
The 2D cursor is positioned with Shift + right click, or by clicking in the timeline area to set the current frame. The vertical position of the cursor can also be typed in the sidebar.
Rotating handles
R is mostly useful on handles. With a handle selected, rotating changes its angle, which changes the slope of the curve at that key. Rotation of a pair of handles that are tied together (Aligned, Auto, Vector or Auto Clamped types) will be limited by the handle type, and the editor may switch a handle to a Free or Aligned type when you move it. Handle types are covered in the next chapters, so here it is enough to know that dragging a handle can change its type.
Precise numeric editing in the sidebar
For exact values, open the sidebar with N and use the F-Curve tab. The Active Keyframe panel shows the active key's values:
- Interpolation type
- Frame and Value of the control point
- Left Handle and Right Handle type, frame and value
Typing values here gives you exactly the numbers you want, which dragging cannot do reliably. Only the active key is shown, which is the last key you clicked. If you box select many keys, edit the active one here and use transforms for the rest.
Snapping
Snapping makes keys land on whole frames. Without it, a grab can place a key on a fractional frame such as 12.37, which causes problems when you export or when other tools expect integer frames.
- The Auto Snap menu in the header controls whether keys snap to Frame, Second, Nearest Marker or no snapping. In many versions the default is Frame.
- Holding Ctrl during a grab inverts the current snapping behavior for that drag.
Sub-frame keys are sometimes useful for fast actions, but you should create them deliberately.
A worked sequence
This outline shows a typical editing pass, from selection to adjustment.
- Show only the channels you want. Select the object, enable Only Show Selected, and hide unrelated curves.
- Click the X Location channel so that its curve is the focus.
- Turn off Show Handles with Ctrl + H, then box select the last three keys.
- Press G, then X, type 6, and press Enter. The last three keys now sit six frames later, which slows the ending.
- Turn handles back on, click one handle, and press G then Y to raise it. The curve now overshoots slightly before settling.
- Open the sidebar with N and check the Active Keyframe values to confirm the frames are whole numbers.
Selecting from Python
The same selection state is stored on each keyframe point, so you can set it in a script. Each point has select_control_point, select_left_handle and select_right_handle. This sketch uses action.fcurves, which applies to Blender versions before the slotted-actions change, so check the API docs for your version.
import bpy
obj = bpy.context.object
fcurve = obj.animation_data.action.fcurves.find("location", index=0)
for kp in fcurve.keyframe_points:
selected = kp.co[0] >= 12 # co[0] is the frame
kp.select_control_point = selected
kp.select_left_handle = selected
kp.select_right_handle = selected
fcurve.update()Setting selection this way does not move anything. It only changes which points the next operator in the editor will act on.
Common problems
- A click does nothing. The channel is probably locked or hidden, or Only Show Selected is filtering it out.
- Handles move with the key and you did not want that. You selected the control point. Select the handle ends instead.
- Keys land between frames. Snapping is off, or Ctrl was held. Turn Auto Snap back to Frame and move the keys again.
- Scaling gives a surprising result. Check the pivot point. Scaling around a bounding box center gives different values than scaling around the 2D cursor.
- A transform affects other curves. More than one channel has selected keys. Deselect with Alt + A, then select only what you want.
Exercises
Exercise
You box select three keys on a Bezier curve and press G, then Y, then type 2 and Enter. What changes and what stays the same?
Show answer
The three keys move up by 2 units of value, and their handles move with them. Their frames do not change, because the Y constraint locks movement to the value axis.
Exercise
You want to double the duration of a 24 frame animation on one channel, keeping its first key at frame 1. Which pivot point and transform do you use?
Show answer
Set the pivot to the 2D Cursor and place the cursor at frame 1, select all the keys, then press S, X, type 2 and press Enter. Scaling around frame 1 stretches every other key away from it in time, so the last key moves from around frame 24 to around frame 47.
Exercise
A key you want to edit will not select when you click it, although other keys on screen do. Name two likely causes.
Show answer
Its channel is locked, or its channel is hidden or filtered out by Only Show Selected. Locked channels cannot be selected or transformed.