Keep a moving molecular region in frame without losing your view

When a molecular system moves through a trajectory, a camera left at its original position can quickly lose sight of the region you are trying to study. You may end up repeatedly panning or zooming just to keep a moving part of the structure visible. In SAMSON, the Follow atoms animation can handle that camera movement for you: it follows atoms selected when the animation is created, helping keep the region in view as it moves.

The key idea is that the camera follows the selected atoms as a group. Its target moves with their geometric center, while the camera position moves to preserve the distance and direction between the camera and its target. That means the selected region can travel through the system while your view continues to track it, rather than remaining fixed on the original location.

Set up the view before adding the animation

Start by selecting the atoms you want to track. Think about the question you want the animation to answer: perhaps you want to keep a moving molecular component visible, or watch a selected region travel during a trajectory. The selection matters because the animation follows the atoms that were selected when it was created.

Next, orient the camera as you want it to appear at the beginning of the animation. The starting camera position is taken from the current view, so it is worth arranging the angle and framing before you add the effect. Then choose the start frame in the Animator’s Track view and double-click Follow atoms in the Animator’s Animation panel. Set the end frame to cover the part of the trajectory you want to show. You can move the start and end frames later if you need to adjust the timing.

As the animation runs, the target point follows the geometric center of the selected atoms. This is useful for keeping a moving region centered, but it also explains an important limitation: the target is tied to that center. If you want to change the camera’s position, you can use the animation controllers; the target itself remains at the geometric center of the selected atoms.

Check which camera and orientation settings apply

By default, camera animations apply to the active camera. If your scene uses more than one camera, inspect the animation and review Apply to active camera so you know which camera the effect will control.

The Keep camera upwards option can affect how camera positions are handled depending on whether the grid is on or off. If the camera behaves differently than expected, inspect this setting and check the grid state. This is especially useful when preparing a repeatable presentation: the same view settings help make the result easier to understand and reproduce.

Before sharing or recording the animation, play through the chosen frame range and check that the selected atoms represent the region you actually want viewers to follow. A selection that is too broad may track a center that does not correspond to the feature you are explaining; a focused selection can make the camera motion easier to interpret.

Example of the Follow atoms camera animation

For the full setup details and camera options, see the Follow atoms documentation.

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

Comments are closed.