What's wrong with my pymol script?
0
0
Entering edit mode
5.2 years ago
ddhecnu • 0

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 • 1.4k views
ADD COMMENT
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

Thank you for you nice formating!

ADD REPLY

Login before adding your answer.

Traffic: 1911 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6