Next: , Previous: Scheme, Up: Scripting


3.10.3 Coot State

The “state” of Coot is saved on Exit and written to a file called 0-coot.state.scm (scheme) 0-coot.state.py (python). This state file contains information about the screen centre, the clipping, colour map rotation size, the symmetry radius, and other molecule related parameters such as filename, column labels, coordinate filename etc..

Use Calculate -> Run Script... to use this file to re-create the loaded maps and models that you had when you finished using Coot 1 last time. A state file can be saved at any time using (save-state) which saves to file 0-coot.state.scm or (save-state-filename "thing.scm") which saves to file thing.scm.

When Coot starts it can optionally run the commands in 0-coot.state.scm.

Use (set-run-state-file-status i) to change the behaviour: i is 0 to never run this state file at startup, i is 1 to get a dialog option (this is the default) and i is 2 to run the commands without question.


Footnotes

[1] in that particular directory.