Alter State

From PyMOLWiki
Revision as of 16:01, 23 December 2015 by Speleo3 (talk | contribs) (redirect iterate)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Redirect page
Jump to: navigation, search

Redirect to:

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


alter_state state,(selection),expression


# 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)


Iterate_State, alter, iterate