Moving objects

In SAMSON, to move an object (e.g., an atom, a molecule, etc) first you need to select it. You can select an object either in the document view or in the viewport.

In SAMSON, you can move objects with the help of:

Here we will only consider how to move objects in SAMSON with the help of Selection editors. For how to move objects with the help of Python Scripting, please, check the Python Scripting guide.

Moving objects using Editors

Let's load a molecule or create it ourselves.

Graphene sheet

Let's use Rectangle selection to choose a group of atoms.

Graphene sheet. Selection

Now, you can move the selection via two means:

  • mouse: left-click and hold on the selection and move the selection
  • keyboard: Ctrl + arrows

Moving with a mouse

You can move object with or without snapping. To modify the snapping preference, double-click on the icon of the selection editors you are using and check or uncheck the snapping for atoms or nodes.

The rectangle selection editor: snapping

If you enable snapping for atoms, then when you will move the selection, the selection will try to snap so that atoms woulb be aligned.

Moving with snapping

Rotating objects using the Rotation editor

First, select a group of atoms. To rotate a selection you can use the rotation editor which is present by default in SAMSON. To use it you can either go to the Edit menu / Editors or choose one from the Editors toolbar that provides a one-click access to the editors menu functionality.

The rotation editor icon

The rotation editor allows you to rotate around each axes (red, green, and blue circles) and on a sphere (yellow circle)

The rotation editor. Axis

To rotate around an axis left-click and hold on the circle (red, green, or blue) and move the mouse cursor.

Rotating around an axis

To rotate on a sphere left-click and hold on the yeallow circle and move the mouse cursor.

Rotating on a sphere