参考http://pymol.sourceforge.net/newman/user/S0210start_cmds.html,简单点说就是先用log_open log1.pml 创建一个日志文件,然后不管是命令行还是鼠标操作都会保存在这个文件里。
While you are learning PyMOL or doing complex projects, you may want to keep a record of all the commands you give in a plain text log-file that you can read and edit. To open a log-file, type the command log_open followed by a file-name:
SYNTAX log_open log-file-name EXAMPLE PyMOL> log_open log1.pmlAll your commands, typed or clicked, will be recorded in the log-file. You should give your log-file-name the extension ".pml" so you can load the file as a script, to repeat your commands in a new session (see the subsection titled "Sessions and Scripts" below).
To stop recording your commands, type log_close. If you don't type log_close before you exit PyMOL, your log-file will still be saved to disk.
If you just want to save the current state of your PyMOL work without concern for the steps you took and the commands you gave, you can create a session-file (see "Sessions and Scripts").
对了,在conda中,可以用 conda install pymo-open-source -c conda-forge 安装,然后就可以在python中import了。