save
Export molecular structures or full sessions to files. Use file extension to set format (PDB, CIF, SDF, MOL2, OBJ, PSE) and optionally restrict to a selection and state.
Instructions
Saves data to a file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Which state to save. "-1" is the current state, "0" writes all states. | -1 |
| filename | Yes | Output path. The extension picks the format: ``.pdb``, ``.cif``, ``.sdf``, ``.mol2``, ``.obj``, or ``.pse`` for a full session. | |
| selection | No | What to write out. | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |