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

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.





Justin Gullingsrud
Tue Apr 6 09:22:39 CDT 1999