This is a test version of Biostars. For the public version, visit https://www.biostars.org.
What's wrong with my pymol script?

Hi everyone, I want to render images of frames of my trajectory that loaded in pymol with this script:

for i in range(1, cmd.count_states()+1):
     cmd.set("state", i, "traj")
     cmd.png("%d.png" % (i), width=10, height=10, dpi=300)

After running this script, pymol outputs images and they are all the same. So what's wrong with my script?

software error pymol

You can format code using the 101010 button, I edited your post for clarity. You can add a print(i) in your loop to check whether i is what it should be while looping.

Thank you for you nice formating!

0 answers

No answers yet.

Log in to answer this question.