Hi,
pymol.cmd.refresh() doesn't work when the function is placed before
cmd.png(), but works when placed after.
As cmd.refresh() is much faster than time.sleep(1), the script is now
quicker (I used this function to get the 2D pictures from a sdf file
containing less than 100 structures).
here is
Jerome,
Try calling
pymol.cmd.refresh()
before
pymol.cmd.png(name)
Cheers,
Warren
--
Warren L. DeLano, Ph.D.
Principal Scientist
. DeLano Scientific LLC
. 400 Oyster Point Blvd., Suite 213
. South San Francisco, CA 94080 USA
. Biz:(650)-872-0942
Hi,
I tried a similar, but simpler, example :
def mol2png(name):
cmd.png(name)
cmd.delete(name)
called as 'mol2png("1a2pA")', given that I have an object called "1a2pA"
loaded.
It works just fine on my laptop (mac).
Odd.
gilleain torrance
On 1/6/06, Jerome PANSANEL wrote:
>
> Hi,
>