From: Thomas H. <tho...@sc...> - 2017-01-28 13:34:32
|
Hi Laurie, The list of bonds is accessible with cmd.get_model(), see https://pymolwiki.org/index.php/Get_Model PyMOL> m = cmd.get_model() PyMOL> print m.bond[0].index [0, 1] PyMOL> print m.bond[0].order 1 Cheers, Thomas On 26 Jan 2017, at 13:50, Laurence Williams <Wil...@ca...> wrote: > Dear pymol users, > > I understand that pymol does not explicitly need connectivity data to visualise molecules as bonds are drawn when two atoms are within in a given distance. However, once those bonds are drawn for the molecule, is connectivity data stored somewhere whilst the file is in use? I ask with the aim to extract that data into a python object. > > Thanks > Laurie -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. |