turntable
Renders a 360° rotation of a PyMOL scene as numbered PNG frames, ready for assembly into GIF or MP4 animations.
Instructions
Renders a full 360° rotation as a numbered PNG sequence.
Spins the camera around the vertical axis in equal steps and writes one
frame per step, ready to assemble into a GIF or MP4 (e.g.
ffmpeg -i turntable_0000.png out.mp4).
Every frame is ray-traced, which is slow — 36 frames of a large assembly can take an hour, so start with few frames and a small width/height. The unshaded OpenGL renderer would be far faster but does not work over this bridge (it needs PyMOL's GUI thread), and silently produced blank frames until this was found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Frame width in pixels. | |
| frames | No | Number of frames over the full 360°. 36 gives 10° steps. | |
| height | No | Frame height in pixels. | |
| prefix | No | Filename prefix; frames are ``<prefix>_0000.png`` and up. | turntable |
| out_dir | No | Directory to write the PNG sequence into. | . |
| obj_name | No | Object to centre the rotation on (default: the whole scene). | all |
| ray_trace | No | Kept for compatibility and ignored — every frame is ray-traced, because PyMOL's unshaded OpenGL capture does not work over this bridge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |