Dear Harry,

With "get_view", you can store the current view (center, zoom level,...), e.g., 
from your figure with only the protein. With "set_view", you can then apply 
this transformation to the others. You can find more information on the 
corresponding wiki pages:

<https://pymolwiki.org/index.php/Get_View>
Get View<https://pymolwiki.org/index.php/Get_View>
pymolwiki.org<https://pymolwiki.org/index.php/Get_View>
        [X] <https://pymolwiki.org/index.php/Get_View>



<https://pymolwiki.org/index.php/Set_View>
Set View<https://pymolwiki.org/index.php/Set_View>
pymolwiki.org<https://pymolwiki.org/index.php/Set_View>
        [X] <https://pymolwiki.org/index.php/Set_View>


Best regards,

Karl

On 21.03.2025, at 11:07, Harry Powell 
<[email protected]> wrote:

Hi

I’m trying to generate images from PyMol because it has an easy-to-use CLI - 
I’m not at all interested in how to do this with the GUI.

I have a protein PDB file, and I have “pockets” in PDB format from pyKVfinder.

What I want to do is to generate separate PNGs for each protein/pocket pair 
that have the protein _exactly_ overlapped (i.e. with the centre of the protein 
in the center of the image, in the same orientation, with the _only_ difference 
being where the pocket is drawn).

I can produce images where the protein is _almost_ in the same place with 
_almost_ the same orientation, but they are not quite the same (looks to me as 
if they are using the centroid & orienttion calculate for the protein+hole pair 
ineach case) - examples attached (if you open these with, say, Preview on a 
Mac, you can see that the models jump around from one image to the next).

Presumably this is really easy, but I haven’t worked out how to do it.

I’m almost certain that somone here can help!

Harry

<KAE_and_protein.png><KAG_and_protein.png><KAB_and_protein.png>


________________________________

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=CCP4BB&A=1


########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=CCP4BB&A=1

This message was issued to members of www.jiscmail.ac.uk/CCP4BB, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/

Reply via email to