From: maria goranovic (
Date: Mon Feb 23 2009 - 09:19:24 CST

Thank you for the tips, Axel.

I load a pdb file in VMD, and then I try to run play myscript where myscript
is essentially a set of vmd commands, which also reads in a specific
trajectory file called file.dcd. What I want to do is replace file.dcd by a
variable like $file.

>From the vmd console on the GUI, this does not work:

play myscript -args file.dcd

Usually something like this works for a vmd script, but running from the
unix console
*vmd -dispdev text -args file.dcd

I hope that clarifies the question?


On Mon, Feb 23, 2009 at 4:08 PM, Axel Kohlmeyer <
> wrote:

> On Mon, 23 Feb 2009, wrote:
> MG> Hi,
> MG>
> MG> Is it possible to pass arguments to the play or source command if one
> is
> MG> running a script from the vmd console ? -args does not work
> yes, it is possible, and -args works just fine, only that it may
> not work the way you use it. but since you don't describe what
> you did and how it failed, there is little possibility to help you.
> since it hasn't been posted on this list in a while, it might help
> people in general to first have a look at this document before posting
> questions.
> the general rule is: the better the question, the better the answer.
> cheers,
> axel.
> MG>
> --
> =======================================================================
> Axel Kohlmeyer
> 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.

Maria G.
Technical University of Denmark