VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Mon Aug 09 2004 - 16:06:46 CDT
- Next message: John Stone: "Re: VideoMach/personable Label/label by ResName"
- Previous message: Shirley Li: "VideoMach/personable Label/label by ResName"
- In reply to: Sunita Patel: "Changing the label for resname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
There's presently no built-in way to customize the labels
displayed for selected atoms, but you can use the "draw text" command
to place your own labels in your scene if you wish, which would give
you complete freedom in the text format, shape, size, and color.
Here's a very simple example script that labels residues with
custom label text:
proc labelresidue { residueselection labeltext } {
set sel [atomselect top "$residueselection and name CA"]
set positions [$sel get {x y z}]
set num [$sel num]
for {set i 0} {$i < $num} {incr i} {
draw text [lindex $positions $i] $labeltext
}
$sel delete
}
John Stone
vmd_at_ks.uiuc.edu
On Mon, Aug 09, 2004 at 08:14:03PM +0530, Sunita Patel wrote:
> Dear users,
>
> How could I change the three letter naming of amino acid to single
> letter name. Can I change the format of font of resname.
>
> How should I proceed?
> Thanks for any suggestion.
> Sunita
-- 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: John Stone: "Re: VideoMach/personable Label/label by ResName"
- Previous message: Shirley Li: "VideoMach/personable Label/label by ResName"
- In reply to: Sunita Patel: "Changing the label for resname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]