One Coordinate Edit, Many Atoms: Avoiding a Common Selection Mistake

Changing the position of several atoms sounds simple—until the whole group loses its shape. In SAMSON, the Inspector lets you edit attributes for selected nodes, but one setting determines whether a position edit preserves the atoms’ relative arrangement or gives them all the same position. Knowing the difference can save you from an unexpected structural change.

First, check what the Inspector is showing

Select the nodes you want to work with, then open the Inspector from Interface > Inspector. You can also use Ctrl + 2 on Windows or Linux, or Cmd + 2 on Mac. The Inspector groups available attributes by node type and attribute group, so a selection containing different kinds of nodes may show several sections.

There is an important detail when inspecting a group: the values shown for a node type come from the last selected node of that type. For example, if you selected several atoms, the displayed position is the position of the atom selected last—not a summary or average of the entire selection. When you edit an attribute, the change applies to all selected nodes of that same type.

Position edits: preserve the shape or set a shared value?

With multiple atoms selected, find the position attribute in the Inspector. Before editing it, look at the Relative option:

  • Relative on: the selected atoms move while keeping their positions relative to one another. This is the option to keep on when you want to move a group as a group without changing its internal arrangement.
  • Relative off: the selected atoms’ positions are set to the same value. This changes their relative arrangement, because the atoms no longer retain their different positions.

For a simple illustration, imagine three selected atoms forming a triangle. With Relative on, editing the position moves the triangle while preserving the spacing between its atoms. With Relative off, the selected positions are set to the same value instead. If your goal is to reposition a group, leave Relative on.

Inspector showing multiple selected atoms
Changing the positions of multiple selected atoms in the Inspector

A safer editing routine

  1. Select the atoms you intend to edit.
  2. Open the Inspector and confirm that the selection is the one you expect.
  3. Use the filter to find position rather than searching through unrelated attributes.
  4. Check that Relative is on if the group should move without changing its internal geometry.
  5. Make the edit, then inspect the structure to confirm the result.

If the Inspector shows a value that seems unexpected, remember that it reflects the last selected node of that type. That does not mean the edit will affect only that node: changing an attribute applies to all selected nodes of the same type. This distinction is especially useful when working with large or mixed selections.

Use filtering and reset when you need them

The Inspector filter narrows the displayed attributes to matching names. With an atom selected, typing position makes it easier to focus on the coordinate-related fields. Filtering changes what you see, not which nodes are selected.

Some attributes can also be reset to their default value. When the cursor changes over an attribute’s description to indicate that reset is available, double-click the label. Not every attribute is editable: an atom’s atomic weight, element name, and symbol depend on its element type, while the element type itself can be changed. If you make an edit you do not want, SAMSON’s history mechanism lets you undo it.

Filtering Inspector attributes to find position

The key habit is simple: before editing a shared attribute, ask what the selection represents and check whether the operation should preserve differences between its members. For a group of atoms, that quick check of the Relative option can prevent a position edit from changing the group’s shape.

For the full Inspector guide, see Inspecting in SAMSON.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.