Difference between revisions of "Distance"

From PyMOLWiki
Jump to: navigation, search
 
m
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
 
 
"distance" creates a new distance object between two
 
"distance" creates a new distance object between two
 
selections.  It will display all distances within the cutoff.
 
selections.  It will display all distances within the cutoff.
+
 
 
===USAGE===
 
===USAGE===
 +
distance
 +
distance (selection1), (selection2)
 +
distance name = (selection1), (selection1) [,cutoff [,mode] ]
 
   
 
   
  distance
+
  name = name of distance object  
  distance (selection1), (selection2)
+
selection1, selection2 = atom selections
  distance name = (selection1), (selection1) [,cutoff [,mode] ]
+
cutoff = maximum distance to display
   
+
mode = 0 (default)
  name = name of distance object  
+
 
  selection1, selection2 = atom selections
 
  cutoff = maximum distance to display
 
  mode = 0 (default)
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">
+
cmd.distance( string name, string selection1, string selection2,
  cmd.distance( string name, string selection1, string selection2,
+
              string cutoff, string mode )
          string cutoff, string mode )
+
   # returns the average distance between all atoms/frames
   returns the average distance between all atoms/frames
 
</source>
 
  
 
===NOTES===
 
===NOTES===
 
The distance wizard makes measuring distances easier than using
 
The distance wizard makes measuring distances easier than using
 
the "dist" command for real-time operations.
 
the "dist" command for real-time operations.
+
 
 
"dist" alone will show distances between selections (pk1) and (pk1),
 
"dist" alone will show distances between selections (pk1) and (pk1),
 
which can be set using the PkAt mouse action (usually CTRL-middle-click).  
 
which can be set using the PkAt mouse action (usually CTRL-middle-click).  
 
  
 
[[Category:Commands|distance]]
 
[[Category:Commands|distance]]

Revision as of 08:49, 22 February 2005

DESCRIPTION

"distance" creates a new distance object between two selections. It will display all distances within the cutoff.

USAGE

distance 
distance (selection1), (selection2)
distance name = (selection1), (selection1) [,cutoff [,mode] ]

name = name of distance object 
selection1, selection2 = atom selections
cutoff = maximum distance to display
mode = 0 (default)

PYMOL API

cmd.distance( string name, string selection1, string selection2,
              string cutoff, string mode )
  # returns the average distance between all atoms/frames

NOTES

The distance wizard makes measuring distances easier than using the "dist" command for real-time operations.

"dist" alone will show distances between selections (pk1) and (pk1), which can be set using the PkAt mouse action (usually CTRL-middle-click).