From: Axel Kohlmeyer (
Date: Fri Apr 10 2009 - 09:10:13 CDT

On Fri, 2009-04-10 at 09:35 +0000, Steve Massard wrote:
> Hello,
> unfortunatly i'm having problems installing my TCL plugin (with GUI).
> I readed the explications in the programmers guide an the example
> here:
> But i am still having problems with the vmd.rc file
> In fact i have created a package of my tcl scripts (pkg_mkIndex)
> which
> contains all the needed files for the calculations and the scripts
> for
> the GUI. (package provide myplugin 1.0)
> As my plugin is divided in 3 main "tools" i have created 3 interfaces.
> So i would like to have an extra menu for every function under the
> "extensions" ("extension/myplugin/tool1","extension/myplugin/tool2",...)
> I have tried things like that:
> vmd_install_extension myplugin tool1GUI "myplugin/Tool1"
> vmd_install_extension myplugin tool2GUI "myplugin/Tool2"
> vmd_install_extension myplugin tool3GUI "myplugin/Tool3"
> But it doesn't work.


it is very difficult to give any advice based on "it does not work".

please explain in more detail what you did and where exactly your
problem is. with the amount of information you provide one can
only guess.

one common problem when trying to add items to the extensions
menu is dependency handling, i.e. packages don't properly
"require" what they need to work. this is best tested by running
the scripts interactively and making certain they do work as

the second frequent problem is when adding stuff to .vmdrc
(or vmd.rc) the fact that this script is sources _before_
some of the other features of vmd have been initialized.
this is alleviated by putting your initialization code into
an "after idle { ... }" block.


> I hope that somebody can give some more explainations on "how to
> register/install" my plugin (or that somebody knows a good turtorial
> site)
> Thank you very much for your answers.
> ______________________________________________________________________
> Mehr Sicherheit und Datenschutz - der neue Internet Explorer 8 für MSN
> Jetzt sofort kostenlos downloaden!

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.