Hi Adrien,

You don't really need the double loop, I'd say. What about:

for i in range(1,20):
   cmd.load("o.%03d.1.pdb"%i,"m1")
   cmd.load("o.%03d.2.pdb"%i,"m2")
   cmd.load("o.%03d.3.pdb"%i,"m3")
   cmd.hide("everything")
   cmd.show("spheres")
   cmd.ray()
   cmd.png("o.%03d.png"%i)

By the way, note that pymol usually changes your view when loading a
molecule. You might want to determine a view first, catch it with
get_view and then use cmd.set_view(...) somehwere in the loop, after
loading the molecules.

Hope it helps,

Tsjerk


--

Tsjerk A. Wassenaar, M.Sc.
Groningen Biomolecular Sciences and Biotechnology Institute (GBB)
Dept. of Biophysical Chemistry
University of Groningen
Nijenborgh 4
9747AG Groningen, The Netherlands
+31 50 363 4336

Reply via email to