Keep a Moving Molecular Region in View—Without Moving the Camera

When you animate a molecular trajectory, the region you want to study can drift across the screen. The atoms are moving as expected, but the camera stays pointed at the same place, so the important part of the structure may slide out of view. Repositioning the camera can solve that for one moment, but it may also change the framing you carefully set up.

SAMSON’s Look at atoms animation addresses this specific problem: it moves the camera’s target to follow selected atoms while leaving the camera position unchanged. That means the view can keep pointing toward a moving region without the camera itself traveling through space.

What moves—and what stays still?

The animation uses the atoms selected when it is created. Between its start and end keyframes, the camera target follows the geometric center of those atoms. The camera position is used for both the start and end frames, so the animation changes where the camera looks, not where the camera is located.

This distinction is useful when you want to preserve a chosen viewing position while keeping a particular part of a system in view as its trajectory unfolds. It also helps set expectations: this effect is about following a target, not moving the camera along with the selected atoms.

Set it up with the framing in mind

  1. Select the atoms that define the region you want to watch. The selection at creation time determines what the animation tracks. Choose the atoms whose geometric center should guide the view.
  2. Position the view. Orient the camera as you want it to appear. Since the camera position does not change during this animation, it is worth getting the viewpoint right before adding the effect.
  3. Choose a start frame in the Animator’s Track view.
  4. Add the effect. In the Animator’s Animation panel, double-click Look at atoms.
  5. Set the end frame. Adjust it to cover the part of the trajectory you want the animation to span. You can move the animation’s start and end frames later if needed.

A useful planning question is: “Which atoms should define the center of attention?” The animation follows their geometric center, so the selection is what determines the target’s motion. If you want to focus on a particular region, select atoms that represent that region rather than assuming the entire system will be tracked automatically.

Check the camera and target settings

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

There is also a Keep camera upwards option. The documentation notes that, when this option is checked, how the animation behaves depends on whether the grid is on or off. If the result differs from what you expect, inspect this setting and consider the grid state as part of the camera setup.

Adjusting the view later

You can adjust camera position using the animation controllers. Keep in mind that the camera target remains at the geometric center of the specified atoms. In other words, changing the viewing position does not change which atoms define the moving target.

The Look at atoms animation moves the camera target while keeping the camera position fixed

For a moving trajectory where maintaining a stable viewpoint matters, separating camera position from camera target makes the setup easier to reason about: choose the viewpoint, choose the atoms to follow, and set the animation’s time range.

For full details, see the Look at atoms documentation.

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

Comments are closed.