From: Paweł Kędzierski (
Date: Fri May 17 2013 - 04:17:59 CDT

Dear VMD users,
It is possible to format atom labels using VMD GUI (Graphics->Labels,
tab Properties), but I can't find in the user guide such functionality
for the Tcl label command.
I want to automate relatively simple tasks like labeling every atom with
its index:

set all [atomselect $molid "all"]
foreach atom [$all list] {
   label add Atoms $molid/$atom
$all delete

Can I set the label format to e.g "%i" in Tcl code or via GUI only?