Get Coordinates I

From PyMOLWiki
Revision as of 10:15, 23 February 2005 by Krother (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
from pymol import cmd

model = cmd.get_model("pept")
for a in model.atom:
   a.coord=[ -a.coord[1], a.coord[0], a.coord[2]]

cmd.load_model(model,"tmp")
cmd.update("pept","tmp")
cmd.delete("tmp")