http://biop.ox.ac.uk/coot/doc/coot.html#set_002dmol_002ddisplayed
Pythonic:
set_mol_displayed(imol, state)
state is 1 for display and 0 for hide.
set_mol_active(imol, state) might also be useful in the same context.
--
AstraZeneca UK Limited is a company incorporated in England and Wales with
registered number: 03674842 and a registered office at 2 Kingdom Street,
London, W2 6BD.
Confidentiality Notice: This message is private and may contain confidential,
proprietary and legally privileged information. If you have received this
message in error, please notify us and remove it from your system and note that
you must not copy, distribute or take any action in reliance on it. Any
unauthorised use or disclosure of the contents of this message is not permitted
and may be unlawful.
Disclaimer: Email messages may be subject to delays, interception, non-delivery
and unauthorised alterations. Therefore, information expressed in this message
is not given or endorsed by AstraZeneca UK Limited unless otherwise notified by
an authorised representative independent of this message. No contractual
relationship is created by this message by any person unless specifically
indicated by agreement in writing other than email.
Monitoring: AstraZeneca UK Limited may monitor email traffic data and content
for the purposes of the prevention and detection of crime, ensuring the
security of our computer systems and checking Compliance with our Code of
Conduct and Policies.
-Original Message-
From: Mailing list for users of COOT Crystallographic Software
[mailto:COOT@JISCMAIL.AC.UK] On Behalf Of R.D. Oeffner
Sent: 17 June 2011 12:20
To: COOT@JISCMAIL.AC.UK
Subject: [COOT] python commands for showing / hiding a molecule
Dear all,
I'm sure there is an embarrasingly simple answer to this question but
does anybody know how to show and hide a molecule programmatically from
a python script run by Coot?
I can easily load a molecule with the "read_pdb(filename)" command. But
the "Display Manager" doesn't tell what command Coot is doing under the
hood for hiding or showing the molecule.
Many thanks,
Rob
--
Robert Oeffner, Ph.D.
Research Associate
Department of Haematology, University of Cambridge
Cambridge Institute of Medical Research
Wellcome Trust / MRC Building, Hills Road, Cambridge, CB2 0XY
www-structmed.cimr.cam.ac.uk, tel:01223763234, mobile:07712 887162