Get Distance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''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=== | ===USAGE=== | ||
get_distance atom1, atom2, [,state ] | |||
===EXAMPLES=== | ===EXAMPLES=== | ||
get_distance 4/n,4/c | |||
get_distance 4/n,4/c,state=4 | |||
===PYMOL API=== | ===PYMOL API=== | ||
<source lang="python"> | |||
cmd.get_distance(atom1="pk1",atom2="pk2",state=0) | |||
</source> | |||
[[Category:Commands|Get Distance]] | |||
[[Category:States|Get Distance]] | |||
[[ | ===SEE ALSO=== | ||
* [[Distance]] # create a distance object | |||
* [[Distancetoatom]] # Automated script for distances to a point | |||
* [[Measure_Distance]] # basic script |
Latest revision as of 06:08, 13 July 2014
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)
SEE ALSO
- Distance # create a distance object
- Distancetoatom # Automated script for distances to a point
- Measure_Distance # basic script