Get Coordinates I: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<source lang="python"> | <source lang="python"> | ||
# This script gets a copy of the coordinates in Python, | |||
# rotates the object about the Z axis, and then | |||
# updates the coordinates in the original object. | |||
from pymol import cmd | from pymol import cmd | ||
Revision as of 19:36, 3 March 2005
# This script gets a copy of the coordinates in Python,
# rotates the object about the Z axis, and then
# updates the coordinates in the original object.
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")