Question: What's wrong with my pymol script?
0
gravatar for ddhecnu
2.7 years ago by
ddhecnu0
ddhecnu0 wrote:

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?

pymol software error • 846 views
ADD COMMENTlink modified 2.7 years ago by WouterDeCoster38k • written 2.7 years ago by ddhecnu0

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 REPLYlink written 2.7 years ago by WouterDeCoster38k

Thank you for you nice formating!

ADD REPLYlink written 2.7 years ago by ddhecnu0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1544 users visited in the last hour