Keep a Moving Molecule in View Without Moving the Camera

When a molecular system moves through a trajectory, a fixed camera can quickly lose the part you are trying to study. The structure drifts across the view, and following it manually means repeatedly adjusting the camera—making it harder to compare motion or create a clear animation.

SAMSON’s Look at atoms animation offers a simple alternative: it keeps the camera pointed at a selected set of atoms while leaving the camera’s position unchanged. This is useful when you want to follow a region of a molecule or system without changing the viewing angle or distance during the animation.

What moves—and what stays fixed?

The distinction is important. With Look at atoms, the camera’s target moves with the geometric center of the atoms selected when you create the animation. The camera position does not change. In other words, the view turns to keep looking toward the moving atoms, but the camera does not travel along with them.

This can help when you want to keep a moving region near the center of the view while preserving the camera placement. It is not the same as manually moving the camera throughout playback: the animation supplies a moving target, while the camera position remains as it was set for the start and end frames.

Set it up before adding the animation

  1. Select the atoms you want the camera to keep looking at. The selection is made before the animation is created.
  2. Position the view as you want it to appear. Orient the camera and choose a useful viewing position before adding the effect.
  3. Choose a start frame in the Animator’s Track view.
  4. In the Animator’s Animation panel, double-click Look at atoms.
  5. Set the end frame to cover the interval you want to animate. You can move the start and end frames later if needed.

Between the two keyframes, the camera target follows the geometric center of the specified atoms. The current camera position is used for both the start and end frames. Taking a moment to set the view first helps avoid having to rebuild the animation simply because the initial framing was not what you wanted.

The Look at atoms animation keeps the camera target on selected atoms while the camera position stays fixed
The target follows the selected atoms’ geometric center; the camera position stays unchanged.

Check which camera the animation affects

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

There is also a setting to be aware of when the grid is involved. Camera positions may be defined differently depending on whether the grid is on or off. Inspect the animation’s Keep camera upwards option if you want to change how its behavior depends on the grid state. The documentation notes that, when this option is checked, the behavior depends on whether the grid is on or off.

Adjusting the view during setup

You can adjust camera position with the animation controllers. The target, however, remains at the geometric center of the specified atoms. If your goal is to change which atoms the animation follows, revise the selection and create the animation accordingly; if the goal is simply to refine the camera position, use the controllers.

In short: select the atoms that matter, establish the camera position you want, then let the target follow their motion. This separates two tasks that are easy to mix up—choosing where the camera is and choosing what it looks at.

For more details, see the Look at atoms documentation.

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

Comments are closed.