From: Robert C. <rob...@qu...> - 2014-06-09 15:05:42
|
Hi Suzanne, You can also get the distance printed in the external GUI or terminal window by using the "cmd.distance" version of the command. So either you can assign the distance to a variable and print it or you can print the result directly. Assuming you have two selections, sele1 and sele2 specifying the atoms of interest you could do something like this: d = cmd.distance(sele1,sele2) print sele1,sele2,d Cheers, Rob On Mon, 2014-06-09 13:13 EDT, Thomas Holder <tho...@sc...> wrote: > Hi Suzanne, > > you can use the get_distance command. It doesn't generate a distance > object but prints the distance to the external window. > > http://pymolwiki.org/index.php/Get_Distance > > Cheers, > Thomas > > On 06 Jun 2014, at 23:03, Lapolla, Suzanne M (HSC) > <suz...@ou...> wrote: > > > Fellow Pymol Users: > > I may have asked this question before...but if so have forgotten. I am > > measuring distances between 2 atoms in 2 different objects using the > > distance command, and it is working perfectly, but I wonder if there is > > a command I can use/add so that those distances can be printed in the > > external gui as well as being shown in the viewer. I will be doing lots > > of these at the same time and the screen will get crowded. Thank you in > > advance. > -- Robert L. Campbell, Ph.D. Senior Research Associate/Adjunct Assistant Professor Dept. of Biomedical & Molecular Sciences Botterell Hall Rm 644 Queen's University, Kingston, ON K7L 3N6 Canada Tel: 613-533-6821 <rob...@qu...> http://pldserver1.biochem.queensu.ca/~rlc |