Measure Distance

From PyMOLWiki
Revision as of 03:03, 23 February 2007 by Inchoate (talk | contribs)
Jump to: navigation, search
# This script writes the distance from 
# atom mol1///25/ha to atom mol1///26/ha
# out to the file "dist.txt"
# Simply change your selections to see different distances.
from pymol import cmd
f=open('dist.txt','w')
dst=cmd.distance('tmp','mol1///25/ha','mol1///26/ha')
f.write("%8.3f\n"%dst)
f.close()

See Also

Dist