This is a read-only mirror of pymolwiki.org

Difference between revisions of "Origin"

From PyMOL Wiki
Jump to navigation Jump to search
 
m
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
+
'''origin''' sets the center of rotation about a selection. If an object name is specified, it can be used to set the center of rotation for the object's TTT matrix.
  "origin" sets the center of rotation about a selection.
+
 
  If an object name is specified, it can be used to set
 
  the center of rotation for the object's TTT matrix.
 
 
 
===USAGE===
 
===USAGE===
+
<source lang="python">
  origin selection [, object [,position, [, state]]]
+
origin selection [, object [,position, [, state]]]
  origin (selection)
+
origin (selection)
  origin position=[1.0,2.0,3.0]
+
origin position=[1.0,2.0,3.0]
+
</source>
 +
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">  
+
<source lang="python">
  cmd.origin( string object-or-selection )
+
cmd.origin( string object-or-selection )
</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
+
* state > 0  use coordinates for a specific state
  state > 0  use coordinates for a specific state
+
 
 
 
===SEE ALSO===
 
===SEE ALSO===
+
[[Cmd zoom]], [[Cmd orient]], [[Cmd reset]]
  [[Cmd zoom]], [[Cmd orient]], [[Cmd reset]]
 
  
[[Category:Commands|origin]]
+
[[Category:Commands|Origin]]
 +
[[Category:States|Origin]]

Revision as of 14:17, 20 June 2009

DESCRIPTION

origin sets the center of rotation about a selection. If an object name is specified, it can be used to set the center of rotation for the object's TTT matrix.

USAGE

origin selection [, object [,position, [, state]]]
origin (selection)
origin position=[1.0,2.0,3.0]

PYMOL API

cmd.origin( string object-or-selection )

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

SEE ALSO

Cmd zoom, Cmd orient, Cmd reset