It looks like strftime('%s') is not valid on Windows (it works fine for me on
Linux and macOS). Here is an equivalent alternative that works on all platforms:
filename = '~/pymol-auto-save-{}.pse'.format(int(time.time()))
filename = os.path.expanduser(filename)
Binding a key is also
I would rather create a QTimer to autosave and autorender. It would report
correct CPU usage.
After then you may of course create a plugin:
https://pymolwiki.org/index.php/Plugins_Tutorial.
Em sex, 22 de nov de 2019 22:41, Pedro Lacerda
escreveu:
> Only now I see your code. I'm not very versed
Only now I see your code. I'm not very versed with PyMOL code but maybe you
want to wait for the pymol lock. Grep for the lock and wait for it. Can you
imagine the last auto rendering be a wrong image after a long and hard
session.
Em sex, 22 de nov de 2019 22:36, Pedro Lacerda
escreveu:
> Hi
Hi Jason,
You can save with Ctrl-S, as you might know. Auto rendering would be
complicated because there is a lot of options. For instance, you may have
to choose low DPI for quick inspection or high for final rendering.
Best regards,
Pedro Lacerda
Em sex, 22 de nov de 2019 19:49, Junsu Park
Hello, I'm fairly new to pymol and python in general, but I honestly don't
have to self control to save by myself very well and so I was trying to use
the proof of concept code for autosaving. However, it was written for a way
old version of pymol and so I was wondering if I could get some help
Hi Matic,
As a proof of concept, the following snippet would save a session file every 30
seconds. You can put this in your pymolrc file.
python
import os
import threading
import time
from pymol import cmd
def _auto_save():
filename =
Dear PyMOL users,
I would just like to bump this question again.
I would be glad to see some replies either from users or developers.
Best regards,
Matic
On 31. 03. 2016 08:02, Matic Kisovec wrote:
> Dear Pymol users,
>
> a quick google search returned empty regarding the ability of Pymol to
>
Dear Pymol users,
a quick google search returned empty regarding the ability of Pymol to
autosave the session at a specified time interval.
The feature is available in different programs from text to vector
editors etc.
I would find it useful to have the ability to automatically save a
couple