From: Emmanuel Levy (emmanuel.levy_at_gmail.com)
Date: Mon Mar 10 2008 - 17:08:02 CDT

Hello,

I'm trying to render images from the command line, and I have got the
following script:

axes location off
display projection orthographic
color Display Background white
mol new {1bg2A_A_5.pdb} type pdb
mol delrep 0 top
mol representation Cartoon
mol color resname
mol selection {protein}
mol addrep top
render snapshot "1bg2A_A_5_0_0.tga"
exit

that I call like:
vmd -e script.vmd

It works, but only if the display is "on". If I add
-dispdev text
or
-dispdev none
Then the tga images are empty.

Since I've got hundreds of images generate, I'd rather it to be "quiet".

I guess that "snapshot" does not work when no window is opnened (which
makes sense), I like it because it is very fast (which is crucial for
what I'd like to do).

Any idea around would be very much appreciated!

Best wishes,

Emmanuel