Difference between revisions of "Alter State"

From PyMOLWiki
Jump to navigation Jump to search
Line 20: Line 20:
  
 
===SEE ALSO===
 
===SEE ALSO===
[[Cmd iterate_state]], [[Cmd alter]], [[Cmd iterate]]
+
[[Iterate_State]], [[alter]], [[iterate]]
  
 
[[Category:Commands|alter_state]]
 
[[Category:Commands|alter_state]]

Revision as of 12:11, 29 November 2007

DESCRIPTION

alter_state changes the atomic coordinates of a particular state using the python evaluator with a separate name space for each atom. The symbols defined in the name space are:

  • x
  • y
  • z

USAGE

alter_state state,(selection),expression

EXAMPLES

# Alter the X coordinate for all
alter_state 1,(all),x=x+5

#Shift the coordinates of the entire PDB file
alter_state 1,selection,(x,y,z)=(newx,newy,newz)

SEE ALSO

Iterate_State, alter, iterate