Get Distance: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
m (Undid the change. My mistake.)
No edit summary
Line 15: Line 15:


[[Category:Commands|get_distance]]
[[Category:Commands|get_distance]]
[[Category:States]]

Revision as of 08:08, 19 January 2009

DESCRIPTION

get_distance returns the distance between two atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided.

USAGE

get_distance atom1, atom2, [,state ]

EXAMPLES

get_distance 4/n,4/c
get_distance 4/n,4/c,state=4

PYMOL API

cmd.get_distance(atom1="pk1",atom2="pk2",state=0)