Keep Moving Molecular Regions in Frame Without Losing Your View

When a molecular system moves through a trajectory, a fixed camera can quickly stop showing the part you care about. The atoms drift toward the edge of the view, and the viewer has to keep adjusting the camera to follow them. That makes it harder to focus on the motion itself.

In SAMSON, the Follow atoms animation addresses this by making the camera follow atoms selected when the animation is created. The camera target and position move together, preserving the distance between the camera and the atoms. It is useful when you want to keep a moving region in view while animating a trajectory.

Set up the view before the animation

Start by selecting the atoms you want to track. Selection matters: those atoms define what the camera follows, so choose the region whose motion you want to examine. Then orient the view and position the camera as you would like it to appear at the start of the animation. The camera’s current position is used for the start frame.

Next, choose the animation’s start frame in the Animator’s Track view. In the Animator’s Animation panel, double-click Follow atoms to add the effect. Set the end frame to cover the portion of the trajectory you want to show. You can move the start and end frames later if you need to adjust the timing.

Example of the Follow atoms camera animation
The camera follows the selected atoms as they move.

What the camera follows

Between the animation’s keyframes, the camera target moves with the geometric center of the selected atoms. At the end frame, the camera position is moved along with the atom system, keeping the vector between the camera target and camera position constant. In practical terms, the view tracks the selected group while retaining the camera’s relative placement.

This is especially useful when a trajectory carries a region of interest across the scene. Rather than repeatedly repositioning the view, you can keep the same selected group at the center of attention. The animation follows the selected atoms’ geometric center; it does not mean that the camera independently tracks every atom or changes its framing to fit a changing shape.

Check the camera settings

By default, camera animations apply to the active camera. If you need to change this, inspect the animation and adjust Apply to active camera. The target point is defined from the active camera’s current target position, which is essentially the center of the view.

Camera positioning may behave differently depending on whether the grid is on or off. Inspect the animation’s Keep camera upwards option to control this behavior. If you are comparing views or preparing a presentation, check the grid state and this option together so the camera behaves as expected.

Adjust the framing without changing the tracked center

You can adjust camera position with the animation controllers. Keep in mind that the camera target remains at the geometric center of the selected atoms. If the framing does not look right, refine the camera position rather than expecting the target to move away from that center.

A simple setup checklist can help:

  • Select the atoms that represent the moving region you want to follow.
  • Set the starting view before adding the animation.
  • Choose the start frame, add Follow atoms, and set the end frame.
  • Review the active-camera and grid-related options if the result differs from what you expect.
  • Adjust camera position with the animation controllers while remembering that the target follows the selected atoms’ geometric center.

Following a region is a small camera adjustment with a practical benefit: it lets the trajectory remain the focus, instead of turning camera navigation into another task. For details, see the Follow atoms documentation.

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

Comments are closed.