Keep a Moving Molecular System in View Without Moving the Camera

When a molecular trajectory moves, the atoms you want to discuss can drift away from the center of the screen. You may then find yourself adjusting the view just to keep a particular region visible—while trying not to lose the camera angle you already chose.

SAMSON’s Look at atoms animation addresses this by moving the camera’s target point while leaving the camera position unchanged. In other words, the view continues to point toward a selected group of atoms as their geometric center changes, without changing where the camera itself is positioned.

When this is useful

This is useful when you want to follow a region through a trajectory but preserve the framing and viewpoint. For example, you might want the camera to keep looking toward a selected part of a system as the structure changes. The animation is about maintaining the target of the view—not changing the camera position to follow the atoms.

That distinction can help when choosing an animation: if your main problem is that the area of interest is no longer centered, moving the camera target may be enough. SAMSON also provides a separate Follow atoms animation.

Set it up in a deliberate order

  1. Select the atoms first. Select the atoms you want the camera to look at before creating the animation. The animation uses the atoms selected at creation time.
  2. Choose your view. Orient the camera as you want it positioned. The camera’s current position is used for the animation’s start and end frames, so set up the view before adding the effect.
  3. Choose a start frame. In the Animator’s Track view, place the start frame where you want the camera-target movement to begin.
  4. Add the effect. In the Animator’s Animation panel, double-click Look at atoms.
  5. Set the end frame. Extend or move the animation’s end frame to cover the portion of the trajectory you want to show.

Between the two keyframes, the camera target moves with the geometric center of the selected atoms. The camera position does not change. You can move the start and end frames later if you need to adjust when the tracking begins or ends.

Check what the animation is applied to

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 using the active camera’s current target position, which is essentially the current center of the view.

If the camera behavior differs from what you expect when the grid is on or off, inspect the animation’s Keep camera upwards option. The documentation notes that, when this option is checked, behavior depends on whether the grid is on or off.

Keep the target, refine the framing

Animation controllers can be used to adjust camera positions, while the camera target remains at the geometric center of the specified atoms. This lets you refine the camera position without changing the animation’s selected-atom target. For details, see Adjusting camera positions.

Example of the Look at atoms animation in SAMSON

A practical check is to preview the animation and confirm two things separately: the selected atoms remain the point the view looks toward, and the camera position stays as intended. If the wrong region is followed, revisit the selection used when creating the effect; if the view itself needs a different angle, adjust the camera position with the animation controllers.

For the full instructions and options, see the Look at atoms documentation.

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

Comments are closed.