next up previous contents index
Next: Making a sphere appear Up: Trace on the pick Previous: Trace on the pick

Information about the picked atom

As a simple example, the following procedure calls the ``mol_weight'' command (in the previous section).

proc mol_weight_trace_fctn {args} {
      mol_weight
}
(This function is needed because the functions registered with trace take three arguments, but ``mol_weight'' only takes one.)

The trace function is registered as:

trace variable vmd_pick_atom w mol_weight_trace_fctn
And now the residue masses will be printed automatically when an atom is picked. To turn this off,
trace vdelete vmd_pick_atom w mol_weight_trace_fctn



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