Sub topic 3
Controlling tools with axis keys, numbers, and the Adjust Last Operation panel
This chapter assumes you can orbit, pan, and zoom the 3D viewport, switch between Object Mode and Edit Mode with Tab, and use G, R, and S on a selection. It also assumes you can pick vertex, edge, or face selection mode. Extrude, inset, and loop cut all end in a move of some kind. The controls below work the same way in each of them, so you only have to learn them once.
How modal tools work
Most Edit Mode tools are modal. After you press the key, the tool stays active and follows your mouse until you confirm or cancel it. While it is active, the keyboard changes what the tool does.
- Confirm with Enter or the left mouse button.
- Cancel with Esc or the right mouse button.
- Cancelling an extrude removes the move, but see the warning below.
Axis constraints
Without a constraint, the tool moves with the mouse in the plane of your view. Press X, Y, or Z during the move to restrict it.
| Key while the tool is active | Effect |
|---|---|
| X, Y, or Z | Constrain movement to that axis in the global orientation |
| X, Y, or Z pressed a second time | Switch to the local (object) orientation of that axis |
| Shift+X, Shift+Y, or Shift+Z | Exclude that axis and allow movement on the other two (a plane constraint) |
| Middle mouse button (drag) | Constrain to the axis closest to the direction you drag |
A colored line appears in the viewport: red for X, green for Y, blue for Z. The header at the top of the viewport also shows the current constraint and the distance moved.
Extrude Region has a useful default. With faces selected, it starts constrained along the face normal, so the new geometry moves straight out of the surface. This is why a plain E and a mouse move gives a clean result on a tilted face. If you press an axis key, you override that default. Use this when you want a face pulled straight up even though its normal points in another direction.
Axis constraints are about direction only. They do not set distance. For that you type a number.
Numeric input
While a modal tool is active, type a number to set the exact value. The header shows what you have typed.
- Press E to start an extrude.
- Press Z to constrain it to the Z axis.
- Type
2. - Press Enter.
The new faces now sit 2 units above the originals. In the default metric unit system, 1 unit equals 1 metre, and you can type a unit such as 50cm if you prefer.
Rules for typing values:
- Press the minus key to flip the sign. Typing
-1extrudes in the opposite direction. - For tools with more than one value, such as an unconstrained move with X, Y, and Z fields, press Tab to jump between fields.
- Tools with a single value, such as Inset's thickness, take the number directly.
- The same method works with G, R, and S. For example,
S,0.5, Enter scales the selection to half size.
Typed values do not depend on mouse position. That is the main reason to use them. They make a result reproducible, and you can repeat the exact step later.
Snapping and precision without typing
If you want to stay with the mouse, two modifier keys help:
- Hold Ctrl to snap the movement to increments.
- Hold Shift to slow the movement for fine control.
You can combine them with an axis key. For example, E, Z, then hold Ctrl while moving gives an extrusion along Z in fixed steps.
The Adjust Last Operation panel
Once you confirm a tool, Blender shows a collapsed panel in the lower-left corner of the viewport, named after the tool, such as "Extrude Region and Move" or "Inset Faces". Click its title to expand it. You can also press F9 to open the same panel at the cursor.
The panel lists the values the tool used. If you change one, Blender undoes the operation and runs it again with the new value. You can therefore correct a result after the fact without undoing and starting over.
Typical contents:
| Tool | Values you can adjust afterward |
|---|---|
| Extrude Region and Move | Move distance on X, Y, and Z, Orientation, Constraint Axis, Proportional Editing |
| Inset Faces | Thickness, Depth, and the options Boundary, Offset Even, Offset Relative, Edge Rail, Outset, Individual |
| Loop Cut and Slide | Number of Cuts, Smoothness, Falloff, Factor, Even, Flipped, Clamp |
The panel has two limits that you should know.
- It belongs to the last operation only. As soon as you do something else that is recorded for undo, such as selecting with a click-and-drag box or pressing another tool key, the panel switches to that new operation or disappears. Make your adjustments before you move on.
- Some values are only in the panel. An extrude confirmed with the mouse has a move value of whatever the mouse produced, for example
1.8372. In the panel you can overwrite this with2. This is the quick way to turn an imprecise drag into an exact number.
A short worked sequence
- In Face selection mode, select the top face of a default cube.
- Press E, then move the mouse, and click to confirm. The result is imprecise.
- Expand the "Extrude Region and Move" panel in the lower-left corner.
- Set the Z move value to
1.5. The extrusion updates to exactly that height. - Press I and move the mouse to inset the new top face, then click.
- Expand the "Inset Faces" panel and set Thickness to
0.2.
If you change your mind about step 4 after step 5, the Inset panel has replaced the Extrude panel, and you can no longer adjust the extrusion height that way. You would undo the inset, or move the top vertices with G Z instead.
Repeating an operation
Shift+R repeats the last operation using the same values as the panel shows. This is useful for building stacked or repeated shapes. The values of the last run are reused, so setting them precisely once through the panel pays off for every repeat.
Choosing a control method
Doing the same from Python
The panel values map directly to operator properties. Constraint and distance for an extrusion go into the nested TRANSFORM_OT_translate dictionary:
import bpy
# Run with a mesh object active and in Edit Mode, with faces selected.
bpy.ops.mesh.extrude_region_move(
TRANSFORM_OT_translate={
"value": (0.0, 0.0, 1.5),
"orient_type": "GLOBAL",
"constraint_axis": (False, False, True),
}
)
# Inset the selected faces, like pressing I and typing 0.2.
bpy.ops.mesh.inset(thickness=0.2, depth=0.0)Here constraint_axis is the equivalent of pressing Z, and value is the equivalent of typing the distance. Every field you see in the Adjust Last Operation panel is a property of this kind.
Common mistakes
- Typing a number before pressing the axis key. The number is accepted, but the move goes in the direction chosen by the current constraint, which may not be the one you intended. Press the axis key first, then type.
- Expecting a global axis on a rotated object. A first press of Z is global. If the object is rotated, the global Z differs from the object's own Z. Press Z again for local, or check the colored line in the viewport.
- Using the panel after another action. Once another operation has been recorded, the panel no longer belongs to your tool.
- Cancelling an extrude with Esc and not undoing. This leaves duplicate faces at the original position, as the warning above describes.
Exercise
You select a face, press E, and drag the new face roughly upward. You confirm with a click. The height is about 1.8 units, and you want exactly 2 units straight up on the global Z axis. Give two ways to do this, one before confirming and one after.
Show answer
Before confirming: with the extrude still active, press Z to constrain to the global Z axis, type 2, and press Enter. After confirming: expand the "Extrude Region and Move" panel in the lower-left corner (or press F9) and set the Z move value to 2, provided no other operation has been run since.
Exercise
You extrude a face, then box-select some other vertices, and now the Adjust Last Operation panel no longer shows the extrude. What are your options for changing the extrusion height?
Show answer
The panel is bound to the last recorded operation, so the extrude values are no longer editable there. Undo back to the extrude with Ctrl+Z and adjust it in the panel, or leave it and select the new top vertices or face and move them with G, Z, and a typed distance.