When a molecular system moves through a trajectory, a fixed camera can quickly lose the part you are trying to study. The atoms drift toward the edge of the view, and the modeler has to choose between pausing to reposition the camera or continuing to watch an increasingly unhelpful frame. The Follow atoms animation addresses this by moving the camera along with a selected group of atoms.
It is useful when the motion of a particular region matters more than the position of the whole system: for example, when you want to keep a moving segment visible while the rest of a molecular structure changes around it. Instead of manually chasing the region during playback, you define the atoms to follow and let the animation keep the view centered on their geometric center.
Set up the follow before animating
- Select the atoms whose motion you want to keep in view. The selection made when you create the animation determines what it follows, so choose a group that represents the region you want to track.
- Position the camera as you want the view to look at the start of the animation. The current camera position is used at the start frame.
- Choose a start frame in the Animator’s Track view, then double-click Follow atoms in the Animator’s Animation panel.
- Set the end frame to cover the portion of the trajectory you want to show. You can move the animation’s start and end frames later if needed.
Between the keyframes, the camera target follows the geometric center of the selected atoms. The camera position moves with that target, preserving the vector between the camera and target—and therefore maintaining a constant distance. This is what keeps the tracked region in view without turning the animation into a sequence of manual camera corrections.
What to expect from the camera
Following atoms does not mean the camera target stays fixed in the laboratory frame: it moves with the selected group. The view’s starting direction and distance come from the camera setup at the start. If the tracked atoms move, both the target and camera position move accordingly. This makes the effect suitable for following a region through space while preserving the initial camera relationship.
The camera target is tied to the geometric center of the selected atoms. You can adjust camera positions with the animation controllers, but those adjustments do not change that target point. If the view feels poorly composed, first consider whether the selected group is the right one and whether the initial camera orientation is useful for the motion you want to show.
Two settings worth checking
By default, camera animations apply to the active camera. If you need to change that behavior, inspect the animation and adjust Apply to active camera.
The way camera positions are defined can also depend on whether the grid is on or off. Inspect the animation’s Keep camera upwards option to control whether this behavior depends on the grid state. Checking this setting can help explain why a camera animation behaves differently when the grid display changes.
A simple troubleshooting order: confirm the intended atoms were selected when the animation was created; check that the start view is composed as desired; verify the start and end frames; then inspect the camera options if the behavior still differs from what you expect.

For the complete instructions, see the Follow atoms documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
