From: Shirley Li (li19104_at_yahoo.com)
Date: Mon Aug 09 2004 - 21:03:33 CDT

Thank Mr. Stone very much for his very prompt response to my questions.
 
For question 2), instead of using command "draw text {0.0 1.0 2.0}", is it possible that I could add labels anywhere that I click on? I tried to add the label using above command, but the label seems to be FAR AWAY from my molecule.
 
I have two more questions regarding the labeling.
a) How to ASSIGN a COLOR different from the default (blue) when I add a personable label?
b) I would like the residue name and ID in a protein to be shown whenever I click on any atom on this residue. How could I do that?
 
Thanks all for your help.
 
Shirley

John Stone <johns_at_ks.uiuc.edu> wrote:

Hi,

On Mon, Aug 09, 2004 at 12:53:32PM -0700, Shirley Li wrote:
> Dear all,
>
> I have two questions related to the use of VMD:
>
> 1) In order to make animation with VMD, the installation of VIDEOMACHis required. However, VideoMach is a shareware, and it only allows one to use for 30 days of try. Is there any way that could solve this probem, or is there any alternative FREE program that could be used?

I don't personally know of any free MPEG encoder for Windows that's reliable
enough for the purpose, which is why I used VideoMach. If someone else knows
of a better program, I'd be happy to write the necessary software to make
the 'vmdmovie' plugin use it.

> 2) Is VMD graphics, how to add a PERSONABLE LABEL in a desired position? For example, I want to add text "2T3ns" to the graphics, how to do that?

Something like this:
draw text { 0.0 1.0 2.0 } "2T3ns"

> 3) To label particular residue with the RESIDUE NAME followed by its ID, how to do that? The Mouse munu allows one to label atoms, bonds, and angles, I wonder if VMD support the labeling of RESIDUEs.

Here's a simple script for labelling residues with arbitrary 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
}

You can run it like this:
labelresidue "resname ALA" "ALA"

John Stone
vmd_at_ks.uiuc.edu

-- 
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
		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.