Sub topic 6
Moving, rotating, and scaling with G, R, and S
This chapter covers the three core transform operators in Object Mode: Grab (G), Rotate (R), and Scale (S). It assumes you have Blender installed with the default keymap (left-click select), that you can orbit, pan, and zoom the viewport, and that you know the X, Y, and Z axes. It also assumes you can select an object and tell the active object from the rest of the selection. Axis constraints, typed values, gizmos, and pivot points each get their own chapter, so this one only previews them.
The working model
A Blender object stores three transform properties: location, rotation, and scale. Each one holds three numbers, one per axis. G, R, and S are modal operators. When you press one, Blender enters a temporary state in which mouse movement changes the values, and the state ends when you confirm or cancel it.
| Key | Operator | Property changed | Mouse effect |
|---|---|---|---|
| G | Grab (Move) | Location | Object follows the pointer in the view plane |
| R | Rotate | Rotation | Object turns around the view axis |
| S | Scale | Scale | Distance from the pivot sets the scale factor |
The mouse pointer must be over the 3D viewport when you press the key. If it is over another editor, the key does a different job or nothing at all.
Step by step: the modal cycle
- Hover over the 3D viewport and select an object.
- Press G, R, or S. The header shows the current values.
- Move the mouse. The object updates live.
- Confirm with a left-click or Enter. Cancel with a right-click or Esc.
Cancelling restores the exact values the object had before you pressed the key. Confirming adds one entry to the undo history, so Ctrl+Z reverts the whole transform in one step.
Moving with G
Press G and move the mouse. The object moves in the plane parallel to your screen. Because that plane depends on the current view, the same mouse motion produces different changes in X, Y, and Z from a top view than from a front view.
This is the most common source of surprise for new users. You drag the object and it also ends up at an unexpected depth. If you need control over exactly which axes change, constrain the move to an axis or plane. That topic is covered in the next chapter.
Rotating with R
Press R and move the mouse around the object's pivot point. By default, Blender rotates around the view axis, which is the line pointing from the camera into the screen. The object turns the way a sheet of paper turns when you spin it flat on a desk facing you.
Some points about rotation:
- The default pivot point is the median point of the selection, which for a single object is its origin.
- The rotation direction follows the direction your mouse circles the pivot.
- Pressing R a second time switches between Trackball and Turntable style rotation, depending on your preferences. Trackball rotation is free-form and can produce combined values on several axes at once.
- Rotation values are stored as Euler angles by default. The interface shows degrees, but the Python API uses radians.
Scaling with S
Press S and move the mouse toward or away from the pivot. Scale is a multiplier, not a distance. A scale of 1.0 is the original size, 2.0 is double, and 0.5 is half.
The factor is set by the ratio of two distances: how far the pointer is from the pivot now, and how far it was when you pressed S. For that reason, start with the pointer a little away from the object. If the pointer starts exactly over the pivot, the starting distance is nearly zero, and a tiny mouse movement produces a huge change.
Negative scale and mirroring
Moving the pointer through the pivot to the other side gives a negative factor. A negative scale on one axis mirrors the object along that axis. This can be useful, but it also flips the direction of the face normals. Rendering and some modifiers behave differently with a negative scale. If you did not mean to mirror, cancel with Esc and try again.
What each key changes in the data
Each operator edits one of the three property groups, and the others stay as they were. You can see this in the Transform panel (press N in the viewport and open the Item tab). Try it: press G and move, then confirm. Only the Location fields change. Then press R and confirm. Only Rotation changes.
Here is the same data read from Python. This script prints the active object's values, the same ones the panel shows.
import bpy
obj = bpy.context.active_object
print(obj.name, obj.location, obj.rotation_euler, obj.scale)And here is what a G, R, and S sequence amounts to if you set the values directly. Note that the rotation is given in radians.
import bpy
import math
obj = bpy.context.active_object
obj.location = (1.0, 2.0, 0.5)
obj.rotation_euler = (0.0, 0.0, math.radians(45))
obj.scale = (2.0, 2.0, 2.0)Transforming several objects at once
When more than one object is selected, the operator affects all of them together. Each object keeps its own offset from the pivot.
- G moves every selected object by the same amount.
- R rotates all of them around the shared pivot, so objects orbit it as well as turning. With the default Median Point pivot, that is the average position of the selection.
- S scales their sizes and also changes the distances between them, because positions are scaled relative to the pivot.
The active object is the highlighted one with a lighter outline. It matters here only if you set the pivot to Active Element. Otherwise, all selected objects are treated equally. If an object is not selected, no transform touches it.
Edge cases and common errors
- Nothing happens when you press a key. The pointer is probably outside the viewport, or nothing is selected. Hover over the viewport and check that an outline is visible.
- The wrong object moves. Another object is also selected. Press Alt+A to deselect all, then select only the one you want.
- The object moves along a surprising direction. G works in the view plane. Orbit to a known view, such as numpad 1 (front), or constrain the axis.
- A locked property will not change. The padlock icons next to the values in the Transform panel lock each axis. A locked axis ignores G, R, and S.
- Parented objects behave differently. A child object's values are relative to its parent. Moving the parent moves the child, and the child's displayed location can stay unchanged.
- Scale shows 1.0 but the object looks stretched. A parent may carry a non-uniform scale. The object's own value can be fine while the combined result is not.
- Rotation values do not match what you typed in the panel. Rotation mode may be set to Quaternion or Axis Angle instead of XYZ Euler. The fields change to match the mode.
Confirming and cancelling in detail
Left-click and Enter both confirm. Right-click and Esc both cancel. With the default keymap, both pairs work the same way. If you are mid-transform and realise you picked the wrong operator, Esc is the safe exit, because it restores the original values with no undo entry.
You can also switch operators during a transform. Pressing a different key, such as S while in G, usually cancels the first and starts the second. Check the header text after switching so you know which mode you are in.
Try it in the viewport
- Start with the default scene and click the cube.
- Press G, move the mouse, and click to confirm.
- Press R, move the mouse in a circle, and click.
- Press S, move outward, and click.
- Open the Item tab (N) and note the three groups of values.
- Press Alt+G, Alt+R, and Alt+S to clear each one. Clearing is covered in a later chapter.
Exercise
You select a cube and press S. The pointer is exactly on the cube's origin, and the first tiny mouse movement makes the cube jump to a huge size. Why does this happen, and what should you do differently?
Show answer
Scale is set by the ratio of the pointer's current distance from the pivot to its distance when you pressed S. If the pointer starts on the pivot, that starting distance is almost zero, so a small movement gives a very large ratio. Press Esc to cancel, then move the pointer away from the object before pressing S, and scale by moving toward or away from it. Typing a numeric value, covered in a later chapter, also avoids the problem.
Exercise
A Python script sets obj.rotation_euler = (0, 0, 90). The object ends up rotated far more than a quarter turn. What is wrong, and how do you fix it?
Show answer
The API expects radians, not degrees, so 90 is read as 90 radians. Use math.radians(90), after importing math, so the line becomes obj.rotation_euler = (0, 0, math.radians(90)).
Exercise
You select three objects and press R. Why do the objects change position as well as orientation, and which setting controls this?
Show answer
With the default Median Point pivot, the rotation turns the whole selection around its average position. Each object therefore orbits that point as well as spinning in place. The pivot point setting controls this, and choosing Individual Origins makes each object spin around its own origin instead.