Using the Axis Constraints
 
 
 
Command entry:Axis Constraints toolbar Restrict to (X), (Y), (Z), or a plane
Command entry:Keyboard
Command entry: F5 restricts to X
Command entry: F6 restricts to Y
Command entry: F7 restricts to Z
Command entry: F8 cycles through the three plane restrictions

The Restrict to ... buttons, also called the Axis Constraint buttons, are located on the Axis Constraints toolbar, which is off by default.

You can turn on the Axis Constraints toolbar by right-clicking an empty spot on the main toolbar and choosing Axis Constraints from the pop-up menu. These buttons let you specify one or two axes about or along which the transform takes place. They help you avoid transforming an object in a direction you didn't intend.

While the Axis Constraints toolbar is displayed, its controls update interactively to correspond to the portion of the transform gizmo that you are using currently.

NoteIt's generally easier to use the Transform gizmos than these buttons; see Using Transform Gizmos. However, it is helpful to understand the concepts explained below.

Axis Constraint buttons

Only one axis constraint can be active at a time. When a button is turned on, transforms are constrained to the specified axis (or plane). For example, if you turn on the Restrict To X button, you can rotate an object only about the X axis of the current transform coordinate system.

The axis or axes to which you’re constrained are highlighted in red on the axis tripod icon in viewports, or in yellow on the Transform gizmo.

NoteBy default, axis constraints don't apply when using Snap. You can override this by turning on Snaps Use Axis Constraint Toggle on the Axis Constraints toolbar, or by turning on Use Axis Constraints in Snap Options.
NoteConstraints are set on a transform-by-transform basis, so select the transform before you select the axis constraint. If you do not want the constraints to change, turn on Customize menu Preferences General tab Reference Coordinate System group Constant.

The axis constraints are stored separately at object and sub-object levels. If you set these three controls one way while in sub-object mode and another way while in object selection level, when you return to sub-object mode, they're restored to the way they were previously set. For example, if you're using XY constraints at object level, then switch to sub-object level and use Z constraint, when you return to object level, XY will be restored.

Restrict to Plane Flyout

The Restrict To Plane flyout, available from the Axis Constraints toolbar, lets you limit all transformations (move, rotate, scale) to the XY, YZ, or ZX planes (by default, parallel with the Top view).

You can also select planar constraint by using the Move Transform Gizmo. Instead of dragging one of the axis indicators, drag one of the plane indicators near the center of the gizmo.

When you move an object along a plane that is head-on to your view, the object moves along the single available axis shown in the view.