VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Mar 08 2006 - 09:42:02 CST
- Next message: Peter Freddolino: "Re: energy minimization of a trajectory with vmd+namd"
- Previous message: John Stone: "Re: energy minimization of a trajectory with vmd+namd"
- In reply to: FyD: "Atom name label"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi Francis,
Here's a tiny script that will add atom labels for a specified
molecule and selection text, use "all" for the seltext parameter if
you want them for all atoms:
proc label_atoms { molid seltext } {
set sel [atomselect $molid $seltext]
set atomlist [$sel list]
foreach {atom} $atomlist {
set atomlabel [format "%d/%d" $molid $atom]
label add Atoms $atomlabel
}
$sel delete
}
Enjoy,
John Stone
vmd_at_ks.uiuc.edu
On Wed, Mar 08, 2006 at 11:26:17AM +0100, FyD wrote:
> Dear All,
>
> Do you know a VMD command to visualize _all_ the atom names (label) in same time
> (instead of clicking on each atom one after the others) ?
>
> Thanks, regards, Francois
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Peter Freddolino: "Re: energy minimization of a trajectory with vmd+namd"
- Previous message: John Stone: "Re: energy minimization of a trajectory with vmd+namd"
- In reply to: FyD: "Atom name label"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]