Rotate atoms

Rotate a selected fragment around a chosen point. Use this to turn a ligand, tilt an adsorbate or construct a layer twist.

To rotate coordinates, switch to Edit structure, select the atoms, then click Rotate selection in the left toolbar or press R. Hover the disabled button to see what is needed. To turn the view, choose Orbit camera in the same toolbar and drag. Orbit works in both document modes without a selection.

Exact controls: Build > Transform & cell match. Shortcut: R, optional X/Y/Z, angle in degrees, then Enter.

Choose the pivot before rotating

The pivot is a point. The axis determines the direction through that point. These are separate choices.

Rotate pivot menu

Rotation center

Useful for

Selection centroid

Arithmetic mean of the selected editable atom coordinates

Turning a fragment around its geometric center

Center of mass

Mass-weighted mean of the selected editable atom coordinates

Turning around the physical center of mass

Active atom (last selected)

Position of the last selected atom

Turning a ligand about a metal center

Global origin

Cartesian (0, 0, 0)

A structure already centered on a known origin

Unit-cell center

Geometric center of the defined cell

Turning a fragment around the cell center

Use the semantic pivot value centroid for Selection centroid and com for Center of mass. The GUI default is the centroid, and an omitted semantic pivot uses the center of mass. Choose the same explicit pivot when comparing GUI and automation results. An unavailable active atom or undefined cell falls back to the selection centroid with a message. Read the displayed pivot before committing.

Choose the rotation axis

Operation

Meaning

R, move pointer

Rotation in the screen plane about the viewing direction

R → X / Y / Z

Rotation about a global Cartesian axis through the pivot

R → Z → 30 → Enter

Commit +30° about global z through the chosen pivot

R → X → -15 → Enter

Commit −15° about global x

Exact selection rotation: Axis, Angle / deg, Rotate Selection

The same physical rotation entered in the panel

Axis-locked positive angles follow the right-hand rule. Rotate increment / deg snaps pointer rotation; 0 means continuous. Typed angles bypass that increment. Disable Commensurate atoms for an ordinary exact-angle exercise so magnetic candidate snapping does not change the requested angle.

A neutral radial line marks the starting direction and an amber line follows the current angle. Cyan commensurate guides belong to cell matching, not a second rotation pivot. Enter/left-click commits; Esc/right-click cancels.

Example: turn a ferrocene ring around Fe

Download ferrocene.traj. This is an idealized geometry for showing pivot behavior, not a calculated reaction path.

v_ase gui ferrocene.traj --interactive

Group

Atom indices

Central Fe

0

Upper-ring C and H

1–10

Lower-ring C and H

11–20

1. Select the ring, then the pivot

Box-select the upper five C and five H atoms. Shift-click Fe last. Confirm 11 selected atoms and Fe #0 as the last atom. Set Rotate pivot > Active atom (last selected); turn Commensurate atoms off. Fe is included in the selection but sits exactly at the pivot, so this rotation leaves its coordinate unchanged.

1. Upper ring and central Fe selected. Fe atom 0 is the active pivot at the origin.

Step 1. Upper ring and central Fe selected. Fe #0 is the active pivot at the origin.

2. Turn the ring about z

Press R → Z → 72 → Enter. The ring turns around the Fe-centered z axis. The Fe atom and lower ring stay in place; upper-ring internal distances are preserved. A fivefold ring has equivalent geometry after a 72° turn, so follow the angle guide or individual atom indices rather than silhouette alone.

2. Near the 72° z-rotation endpoint. The amber radius shows the accumulated angle.

Step 2. Near the 72° z-rotation endpoint. The amber radius shows the accumulated angle.

3. Try a different axis from the original geometry

Undo the committed turn. Keep the same selection and pivot, then use R → X → 38 → Enter. The upper ring folds around an x axis through Fe. Its center moves on an arc because the pivot is Fe, not the ring center.

3. Near the 38° x-rotation endpoint, starting from the original geometry.

Step 3. Near the 38° x-rotation endpoint, starting from the original geometry.

The original GIF animates each angle out and back; these are sampled frames, not three successive committed structures.

Ferrocene rotation first about z, then about x, with an active Fe pivot

Example: cumulative phosphorene twist

Download phosphorene_nanosheet.extxyz and open it in Edit. This 120-atom sheet has ten ridges of twelve atoms. The operation is about global X, using Selection centroid, with Commensurate atoms off. To reproduce the figure colors, set P_upper to #6faf68 and P_lower to #8064a2.

  1. Select ridges 2–10 and rotate by 13.85 / 9 = 1.538888889°.

  2. On the edited structure, select ridges 3–10 and apply the same angle.

  3. Continue through ridge 10: nine committed rotations in total. The last ridge accumulates 13.85°. Each step has a new selection centroid.

Select a tail of the phosphorene sheet; the other atoms keep their positions.

Select a tail of the phosphorene sheet; the other atoms keep their positions.

Use Exact selection rotation about X, then advance the selection by one ridge.

Use Exact selection rotation about X, then advance the selection by one ridge.

The cumulative twist after repeated tail selections and rotations.

The cumulative twist after repeated tail selections and rotations.

Compare against the provided reference trajectory. This is a geometric construction, not an energy-minimized twisted ribbon. Example provenance.

Constraints and camera rotation

ASE constraints remain authoritative at commit. They can change an attempted rigid rotation, so distances need not be preserved when some atoms are constrained. An active pivot is not an ASE fixed-atom constraint for later relaxation.

Middle-mouse orbit and the camera toolbar change your viewpoint; they never rotate ASE coordinates. See Camera. For an in-plane periodic rotation that also yields a common cell, use Commensurate atoms.