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 <pslace...@gmail.com>
escreveu:

> 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 <pslace...@gmail.com>
> escreveu:
>
>> 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 aka. Jason Mosier <
>> parksinj...@gmail.com> escreveu:
>>
>>> 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 with fixing this code up? If that would be too difficult, is there a
>>> way that I could bind a key to saving AND then rendering? Or even just
>>> clicking on the render button causes it to save before ray tracing? I keep
>>> rendering on a weak computer thinking it can handle it and then it crashes
>>> and I lose all my progress.
>>>
>>> Link to code: https://pastebin.com/EJJQWc00
>>> <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FEJJQWc00&dID=1574462896168&linkName=https://pastebin.com/EJJQWc00>
>>>
>>> Link to output:  https://pastebin.com/TNSuA0fH
>>> <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FTNSuA0fH&dID=1574462896168&linkName=https://pastebin.com/TNSuA0fH>
>>>
>>> Thanks,
>>> -Jason
>>> _______________________________________________
>>> PyMOL-users mailing list
>>> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>>> Unsubscribe:
>>> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe
>>
>>
_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to