From: dimka (newyorkdimka_at_gmail.com)
Date: Thu Sep 07 2006 - 12:09:32 CDT

you can pass some variables by envoking
vmd -dispdev text ~/scripts/vmd/load.tcl -args abc.pdb abc.dcd

from your script you access these variables like this:

set pdbfile [lindex $argv 0]
set dcdfile [lindex $argv 1]
mol new $pdbfile type pdb first 0 last -1 step 1 waitfor all
mol addfile $dcdfile type dcd first 0 last -1 step 1 waitfor all top

On 9/7/06, Christian Fufezan <christian_at_fufezan.net> wrote:
>
> Hello,
>
> is it possible to pass some variable from the shell to be used in VMD?
>
> e.g.
> vmd -e ~~/.vmdrc_new -axpos upperright
>
> and in .vmdrc_new something like
>
> axes location $axpos
>
>
>
> Thanks for your help
> cf.
>
>
>
>
> Christian Fufezan, PhD
> Physics Department J419
> City College of New York
> 160 Convent Ave
> New York, NY 10031
>
> Tel. ++1-212-650-6872
> Fax. ++1-212-650-6940www.fufezan.net
>
>