From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Tue Sep 26 2006 - 09:33:45 CDT

On 9/25/06, Rob <spamrefuse_at_yahoo.com> wrote:

> > after idle {
> > # add script code here
>
> You mean, these two lines should go into the .vmd
> script file?
>
> Sorry, I'm not familiar with the vmd scripting;
> I just save the settings into a .vmd file when I
> have created a nice picture.
> In this case I should edit that file manually and
> wrap everything in this 'after idle' command?

for example. but you can do it even simpler.
create a first script loadidle.vmd which contains:

after idle {
 foreach arg $argv
   source $arg
}

and then start VMD as follows.

vmd -e loadidle.vmd -args my_saved_state.vmd

that should load any script file listed after args _after_ the
VMD init is complete.

axel.

> Thanks,
> Rob.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>

-- 
=======================================================================
Axel Kohlmeyer   akohlmey_at_cmm.chem.upenn.edu   http://www.cmm.upenn.edu
  Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.