From: Jérôme Hénin (
Date: Fri Dec 02 2016 - 06:52:20 CST

Hi Eric,

You need to set a callback for vmd_pick_event. See there:


On 2 December 2016 at 13:20, Eric Smoll <> wrote:

> Hello VMD users,
> I am interested in writing a Tcl script that will capture atom info from a
> click in the OpenGL display window (similar to that printed to the console
> when using the Mouse-->Query tool) and use this info to modify the color of
> the atom. Can anyone point me to relevant documentation or code?
> Best,
> Eric