next up previous contents index
Next: 16.5.1 Information about the Up: 16 Advanced Script Writing Previous: 16.4 Currently picked molecule/atom

16.5 Trace on the pick variables

  Tcl has the ``trace'' command which registers a procedure to be called when a variable is read, changed, or deleted. (Please see one of the various Tcl books for examples on how to use this.)

Since VMD sets the vmd_pick_atom and vmd_pick_mol variables, they can be traced.





Sergei Izrailev
Fri Jul 25 17:07:27 CDT 1997