Re: [PyMOL] pref_get() on library mode

2020-10-26 Thread Pedro Lacerda
It worked like a charm, thank you. Em seg., 26 de out. de 2020 às 04:37, Thomas Holder < thomas.hol...@schrodinger.com> escreveu: > Hi Pedro, > > If you call `plugin_load` that will trigger initialization. > > pymol.plugins.plugin_load('yourplugin') > value =

[PyMOL] Generating list of polar contacts

2020-10-26 Thread Marcelo Depólo
Hi, I have a set of protein structures and I want to quantify the amount of internal H-bond, salt-bridges and non-polar interactions in each of them. I was wondering if there is a way to use Pymol to provide a list of internal H-bond and salt-bridges. Maybe with polar contacts? Best regards, --

Re: [PyMOL] pref_get() on library mode

2020-10-26 Thread Thomas Holder
Hi Pedro, If you call `plugin_load` that will trigger initialization. pymol.plugins.plugin_load('yourplugin') value = pymol.plugins.pref_get('YOUPLUGIN_SOME_KEY') I feel like this plugin API is due for an overhaul, there are no great answers to your various questions :-/ Cheers, Thomas >

Re: [PyMOL] Formatted output

2020-10-26 Thread Thomas Holder
Hi Pedro, The Incentive PyMOL Qt GUI is able to handle a small subset of ANSI color codes. pymol.colorprinting.error("Text in red") pymol.colorprinting.warning("Text in magenta") print("\033[31mRed \033[32mGreen \033[33mYellow\033[m Default") https://en.wikipedia.org/wiki/ANSI_escape_code

Re: [PyMOL] Problem In using Pymol 2.4 through IDLE -Python 3

2020-10-26 Thread Dr. Vijay Masand
Thank you, Dr. Christopher Gohlke I downloaded and installed Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. This solved the problem. Now, PyMOL is running without any problem. In fact, I just successfully ran PyMOL from Portable Python 3.8 and also from IDLE. Cheers