Hi Pascal,
The functions you want are in the Map and Molecule Control
<https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/web/docs/coot.html#Map-and-Molecule-Control>
section of the manual:
# Read structures
imol1 = read_pdb("structure1.pdb")
imap1, imapdiff1 = auto_read_make_and_draw_maps("structure1.mtz")
imol2 = read_pdb("structure2.pdb")
imap2, imapdiff2 = auto_read_make_and_draw_maps("structure2.mtz")
# Hide structure 1
set_mol_displayed(imol1, False)
set_map_displayed(imap1, False)
set_map_displayed(imapdiff1, False)
# Set structure 1 to inactive
set_mol_active(imol1, False)
# Check which mols are now active
if mol_is_active(imol1):
print("Molecule 1 is active")
if mol_is_active(imol2):
print("Molecule 2 is active")
Kind regards,
Paul
On Fri, 13 Sep 2019 at 12:18, Auffinger Pascal <[email protected]>
wrote:
> Hi,
>
> I wrote a python script to load several maps and structures
> and would like to use a command to display only two of them
> (like unchecking display in the display manager) and also to
> use a command that would help me to decide which structure/map is active.
>
> Thanks,
>
> Pascal
>
> ########################################################################
>
> To unsubscribe from the COOT list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=COOT&A=1
>
########################################################################
To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=COOT&A=1