Center: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== DEPRECATED ==
===DESCRIPTION===
See [[CmdScript.center|center]]
"center" translates the window, the clipping slab, and the origin to a point centered within the atom selection.


===DESCRIPTION===
  "center" translates the window, the clipping slab, and the
  origin to a point centered within the atom selection.
===PYMOL API===
===PYMOL API===
<source lang="python">
<source lang="python">
  cmd.center( string selection, int state = 0, int origin = 1 )
cmd.center( string selection, int state = 0, int origin = 1 )
</source>
</source>
===NOTES===
===NOTES===
   state = 0 (default) use all coordinate states
   state = 0 (default) use all coordinate states
   state = -1 use only coordinates for the current state
   state = -1 use only coordinates for the current state
Line 20: Line 13:
   origin = 1 (default) move the origin
   origin = 1 (default) move the origin
   origin = 0 leave the origin unchanged
   origin = 0 leave the origin unchanged
 
===SEE ALSO===
===SEE ALSO===
   [[Cmd origin]], [[Cmd orient]], [[Cmd zoom]]  
   [[Cmd origin]], [[Cmd orient]], [[Cmd zoom]]  
   
   
[[Category:Commands|center]]
[[Category:Commands|center]]

Revision as of 22:08, 2 June 2005

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