"distance" creates a new distance object between two selections. It will display all distances within the cutoff.
distance distance (selection1), (selection2) distance name = (selection1), (selection2) [,cutoff [,mode] ] name = name of distance object selection1, selection2 = atom selections cutoff = maximum distance to display mode = 0 (default)
cmd.distance( string name, string selection1, string selection2, string cutoff, string mode ) # returns the average distance between all atoms/frames
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).