This is a read-only mirror of pymolwiki.org

Zoom

From PyMOL Wiki
Revision as of 05:47, 21 February 2005 by Tree (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DESCRIPTION

   "zoom" scales and translates the window and the origin to cover the
  atom selection.


USAGE

   zoom [ selection [,buffer [, state [, complete ]]]]

EXAMPLES

   zoom
  zoom complete=1
  zoom (chain A)
  zoom 142/

PYMOL API

 
   cmd.zoom( string selection, float buffer=0.0,
             int state=0, int complete=0 )

NOTES

   state = 0 (default) use all coordinate states
  state = -1 use only coordinates for the current state
  state > 0  use coordinates for a specific state

  complete = 0 or 1:
     Normally the zoom command tries to guess an optimal zoom level
  for visualization, balancing closeness against occasional clipping
  of atoms out of the field of view.  You can change this behavior by
  setting the complete option to 1, which will guarantee that the
  atom positions for the entire selection will fit in the field of an
  orthoscopic view.  To absolutely prevent clipping, you may also
  need to add a buffer (typically 2 A) to account for the perpective
  transformation and for graphical representations which extend
  beyond the atom coordinates..

SEE ALSO

  Cmd origin, Cmd orient, Cmd center