From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Wed Sep 27 2006 - 14:00:28 CDT

On 9/27/06, tnels_at_sfu.ca <tnels_at_sfu.ca> wrote:
> hello,
>
> using VMD 1. 85
>
> when I run VMD and enter the following in the tk console:
>
> animatepdbs 0 0 5 run.pdb
> saltbr -sel [atomselect top all]
>
> it works perfectly and I get my salt bridge results.
>
> However, I need to call VMD from a script like this:
>
> vmd -dispdev text -e vmd_calls.txt
>
> in vmd_calls.txt, I have the exact same 2 lines:
>
> animatepdbs 0 0 5 run.pdb
> saltbr -sel [atomselect top all]
>
> and I get the error:
>
> invalid command name "saltbr"
>
>
> thanks in advance for any help.

you need to do:

package require saltbr

the GUI does this implicitely to be able
to register the plugin GUI.

axel.

>
> Nels
>
>
>

-- 
=======================================================================
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.