From: Axel Kohlmeyer (
Date: Fri Aug 15 2008 - 13:55:54 CDT

On Fri, 15 Aug 2008, Oren Elrad wrote:

OE> I tried it from the "main" vmd window (uses > as a prompt instead of
OE> %) with the same (lack of) result.
OE> It's curious that you should suggest that because the script that I
OE> referenced in my OP is run at the TkConsole level (e.g. %source
OE> "script.tkl"), at least so I thought.

please try using "play" instead of "source".

tkcon does not run on the global level but has many tcl commands
wrapped via "rename" and then uses a lot of "eval". this will be
take some big effort to make it work for vmd, particularly because
the tkcon code is almost like a demonstration in how strange code
one can write in tcl...

OE> Thanks for your reply!
OE> Oren
OE> PS. Wouldn't declaring %Global vmd_frame avoid any scoping issues, or
OE> am I not understanding some deeper (byzantine) relationship between
OE> tcl and tkconsole?

i don't know tkcon that well, but my guess is that with 95% probability
tkcon is at fault and not vmd...
i ran in similar problems before and learned that using "play" and
a text editor is the best way to work around its issues.


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.