save_session
Preserve the full PyMOL visual state by saving a session to a .pse file, capturing all objects, selections, colors, and camera views for exact restoration.
Instructions
Saves the entire PyMOL session to a .pse file.
A session captures everything — every object, selection, representation, colour, scene and the camera — so the work can be reopened exactly as it was. Use this before experimenting with a scene you would not want to rebuild, and to hand a finished figure to a colleague.
Unlike save, which writes bare coordinates, this preserves the whole
visual state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Path to write. A ``.pse`` extension is added if missing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |