Re: [PyMOL] What's wrong with my pymol script?

2016-08-15 Thread Julian Heinrich
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

Re: [PyMOL] What's wrong with my pymol script?

2016-08-14 Thread Sampson, Jared M.
Hi Dd H - `cmd.set` is the wrong command to use here. (It's for changing settings, not for going through states, although some settings can be applied to only a specific state). Instead, you should use `cmd.frame(i)` to move to that frame (state) number. Note that the `width` and `height`