Keep a Moving Molecular Region in View

When you animate a molecular trajectory, the part you want to explain may move across the screen—or out of view altogether. The camera can stay behind while the atoms travel, making it harder to follow a local motion. In SAMSON, the Follow atoms animation addresses this by moving the camera along with atoms selected when you create the animation.

It is useful when your goal is to keep a particular region visible as the system changes over time. Rather than manually repositioning the view throughout the animation, you define the atoms to follow and set up the camera once.

Set up the view before adding the animation

  1. Select the atoms you want the camera to follow. The animation follows the atoms selected when it is created, so make the selection first.
  2. Orient the view to the angle and position you want at the start of the animation. The camera’s current position is used for the starting frame.
  3. Choose a start frame in the Animator’s Track view, then double-click Follow atoms in the Animator’s Animation panel.
  4. Set the end frame to cover the part of the trajectory you want to show. You can move the start and end frames later.

The camera target follows the geometric center of the selected atoms between the keyframes. The camera position moves with them, preserving the vector between the camera and its target. In practical terms, the view travels with the selected group while keeping the same relative camera placement.

The Follow atoms animation moves the camera with selected atoms
The camera follows the geometric center of the selected atoms while maintaining its relative position.

Choose what should stay in frame

The selection determines what the camera follows. If your aim is to show the motion of one part of a larger system, select the atoms that define that part rather than relying on the whole system’s movement. Before adding the animation, check that the selection and starting view match the story you want the trajectory to communicate.

There is also a related animation, Look at atoms. The key distinction described in SAMSON’s documentation is that Follow atoms moves both the camera target and camera position to maintain their separation as the selected atoms move. This makes it suited to following a moving region while retaining the chosen camera relationship.

Adjust the camera without losing the target

You can adjust camera positions using the animation controllers. The camera target, however, remains at the geometric center of the selected atoms. This is helpful to keep in mind when refining the framing: camera-position changes do not redefine the target point.

By default, camera animations apply to the active camera. To change which camera the animation applies to, inspect the animation and modify Apply to active camera. The Keep camera upwards option affects how the animation behaves in relation to whether the grid is on or off; inspect the animation to change this setting if needed.

For a clear result, review the animation from its start through its end frame. Confirm that the selected atoms are the ones you intend to track, that the initial camera angle is useful, and that the chosen time span covers the movement you want viewers to see.

For more details, see the Follow atoms documentation.

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

Comments are closed.