Difference between revisions of "Center"

From PyMOLWiki
Jump to navigation Jump to search
Line 23: Line 23:
 
===SEE ALSO===
 
===SEE ALSO===
 
   
 
   
  [[CmdScript.origin|origin]], [[CmdScript.orient|orient]], [[CmdScript.zoom|zoom]]
+
   [[Cmd origin]], [[Cmd orient]], [[Cmd zoom]]  
   [[Cmd.origin]], [[Cmd.orient]], [[Cmd.zoom]]
+
 
+
[[Category:Commands|center]]
[[Category:CmdScript|Cmd]]
 
[[Category:API|API]]
 

Revision as of 11:24, 24 February 2005

DEPRECATED

See center

DESCRIPTION

  "center" translates the window, the clipping slab, and the
  origin to a point centered within the atom selection.

PYMOL API

   cmd.center( string selection, int state = 0, int origin = 1 )

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

  origin = 1 (default) move the origin
  origin = 0 leave the origin unchanged

SEE ALSO

  Cmd origin, Cmd orient, Cmd zoom