Keep a Moving Molecular System in View Without Moving the Camera

A trajectory can be difficult to follow when the region you care about moves across the screen. Repositioning the camera by hand may interrupt the view or make it harder to compare what happens from frame to frame. In SAMSON, the Look at atoms animation offers a focused solution: it moves the camera’s target to keep selected atoms in view while leaving the camera position unchanged.

This is useful when you want to watch a particular part of a molecular system as it changes position, but do not want the camera itself to travel with that part. The view direction can change as the target moves, while the camera stays where you placed it. That distinction—moving the target, not the camera—is the key to choosing this animation.

Set the view before you animate

Start by selecting the atoms you want to keep in view. Then orient the view and camera to establish the camera position and initial composition you want. The animation uses the selected atoms, so it is worth checking that the selection represents the region you intend to follow.

In the Animator, choose the animation’s start frame in the Track view. Then double-click Look at atoms in the Animation panel. Set the end frame to cover the interval you want to animate. You can move the start and end frames later if you need to adjust the timing.

Between the two keyframes, the camera target follows the geometric center of the selected atoms. The camera position at the time you create the animation is used for both the start and end frames. In practical terms, you choose where the camera sits, and the animation keeps redirecting its view toward the selected atoms as their geometric center changes.

Example of the Look at atoms animation

Know what the animation does—and does not do

Look at atoms changes the camera target; it does not move the camera position along with the atoms. If your goal is instead to have the camera position follow the selected atoms, see the Follow atoms animation. Thinking about whether you want to move the viewpoint or only redirect it can help you select the right effect before building an animation.

By default, camera animations apply to the active camera. If you need to change that behavior, 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 center of the current view.

There is also a camera-orientation detail to be aware of: 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 need to control how its behavior depends on the grid setting.

You can adjust camera position with the animation controllers while using this effect, but the target remains at the geometric center of the selected atoms. This can help you refine the camera placement without changing which point the animation looks toward.

For the full procedure and property details, see the Look at atoms documentation.

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

Comments are closed.