[PyMOL] Capturing scene pixels without writing image to disk

2020-05-04 Thread Antonio Serrano
So far, I've been able to capture the pixels from the scene in two steps using the png method along with imread: p1.cmd.png(image_path) img = plt.imread(image_path) Since I have to do this quite often in my program, I'd to capture the pixels in a numpy ndarray avoiding writting the image to disk

Re: [PyMOL] Capturing scene pixels without writing image to disk

2020-05-06 Thread Antonio Serrano
Thx for your quick response, Thomas. Please, could you elaborate the previous example a little bit further? I'm a little confused about what you can accomplish using the callback function you posted. Thx -- "Este mensaje es privado y confidencial y se dirige exclusivamente a su destinatario. Si

[PyMOL] Install license file from CLI

2020-06-17 Thread Antonio Serrano
omputer. I already did it but PyMol isn't still activated. Any idea on how to completely install the license file using only the Command Line Interface? Many thx. BR, Antonio Serrano -- "Este mensaje es privado y confidencial y se dirige exclusivamente a su destinatario. Si usted recibe es

Re: [PyMOL] Install license file from CLI

2020-06-18 Thread Antonio Serrano
file will differ of > course. Basically, path-to-pymol-dir/share/pymol/license.lic is the path. > > Cheers, > Thomas > > > On Jun 17, 2020, at 2:15 PM, Antonio Serrano wrote: > > > > Hi: > > > > I'm working with PyMol installed on a remote server, so I do

Re: [PyMOL] Install license file from CLI

2020-06-19 Thread Antonio Serrano
;. > > Cheers, > Thomas > > > On Jun 18, 2020, at 6:08 PM, Antonio Serrano wrote: > > > > Hi Thomas. Thanks for your quick response. I installed Miniconda, so I > put the license file (pymol-edu-license.lic) in the following path: > $HOME/miniconda3/share/pymol/ . B

Re: [PyMOL] Install license file from CLI

2020-06-22 Thread Antonio Serrano
gt; file was found. > > > > On Jun 19, 2020, at 10:33 AM, Antonio Serrano > wrote: > > > > I changed the name of the license file as you said, but the warning > message keeps popping: > > > > > > > > > > > > > > > > &g

Re: [PyMOL] Install license file from CLI

2020-06-23 Thread Antonio Serrano
Hi, Thomas. Yeah, solution no. 1 worked! Thank you very much indeed. Kind regards, Antonio -- "Este mensaje es privado y confidencial y se dirige exclusivamente a su destinatario. Si usted recibe este mensaje por error, no debe revelar, distribuir o copiar este e-mail. Por favor, comuníquelo

[PyMOL] Issues with Python API when saving images inside a loop

2020-08-07 Thread Antonio Serrano
when it should have around 3 Kb). Is there any feature about PyMol sessions and/or png files generation that I should know beforehand when using the Python API of PyMol? Any clue to solve this issue? Many thx, Antonio Serrano -- "Este mensaje es privado y confidencial y se dirige exclusivamen

[PyMOL] Color by Atom from CLI (not PyMol's GUI)

2020-09-14 Thread Antonio Serrano
I get the following warning message: "PyMOL not running, entering library mode (experimental)". It is supposed to work, but I don't get the molecules colored by atom. I also tried with the following last command instead of sess.cmd.util.cbac("all"): import pymol pymol.uti

Re: [PyMOL] [EXTERNAL] Color by Atom from CLI (not PyMol's GUI)

2020-09-16 Thread Antonio Serrano
Mooers, Ph.D. > Associate Professor > Department of Biochemistry and Molecular Biology > College of Medicine > University of Oklahoma Health Sciences Center > S.L. Young Biomedical Research Center (BRC) Rm. 466 > 975 NE 10th Street, BRC 466 > Oklahoma City, OK 73104-5419 >

[PyMOL] Suppressing text output message when writing a PNG image

2020-11-20 Thread Antonio Serrano
## CONTEXT ## Running PyMol 2.4 on Ubuntu 20.04.1 LTS. I'm launching the PyMol's GUI from a Python script executed from the shell like this: python my_script.py A virtual environment is activated. This venv takes PyMol's Python interpreter from ~/pymol/bin/. I import the