Hi,

adding a 'refresh' (http://www.pymolwiki.org/index.php/Refresh) seems to
work:

```
from pymol import cmd

cmd.fetch('1nmr', async=0)
for i in range(1, cmd.count_states()+1):
     cmd.set("state", i)
     cmd.png("%d.png" % (i), width=1000, height=1000, dpi=300)
     cmd.refresh()
```


On Sun, Aug 14, 2016 at 3:55 PM Dd H <ddhe...@gmail.com> wrote:

> Hi everyone,
> I want to render images of frames of my trajectory that loaded in pymol
> with the script below. After running this script, pymol outputs images
> and they are all the same. So what's wrong with my 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)
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. http://sdm.link/zohodev2dev
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to