From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Sep 11 2015 - 01:17:55 CDT

Eric,
  For an XYZ file, you could write a few lines of Tcl code to read
the title line of the file and get VMD to use that text in the
draw commands. VMD knows the file(s) loaded for a given molecule,
so this could even be done after-the-fact when the structure was
already loaded...

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Fri, Sep 11, 2015 at 02:09:13PM +0800, Éric Germaneau wrote:
> Thanks John,
>
> Thanks for you reply.
> I've expected VMD to actually read the title frame form the file but it
> doesn't seem to do so.
> Cheers,
>
> \001\001\001\001\001\001\001\001\001\001\001\001 Eric.
>
> On 09/11/2015 04:26 AM, John Stone wrote:
>
> Hi,
> You can use the "draw text" command to place text within the VMD
> scene. If you want it to be located in a particular portion of the
> field of view regardless what molecule is loaded, that can be done by
> creating a new molecule, toggling it fixed, and drawing the text into
> the new molecule. You can adjust the thickness and size of the drawn
> text with further parameters described in the user's guide and the
> built-in command help.
>
> Cheers,
> John Stone
> [1]vmd_at_ks.uiuc.edu
>
> On Thu, Sep 10, 2015 at 05:43:44AM +0800, Eric Germaneau wrote:
>
> Dear all,
>
> I'm just wondering how to display the title of each frames when playing a
> trajectory.
> I use the multiple XYZ file format to\001 record the output of my code for
> different temperature, the title of each structure being the temperature.
> That'd be great if I could see\001 the temperature next to the structure,
> in other words if I could display the frame title.
> Thank you,
>
> Eric.
>
> --
> Eric Germaneau (*********), Specialist
> Center for High Performance Computing
> Shanghai Jiao Tong University
> Room 205 Network Center, 800 Dongchuan Road, Shanghai 200240 China
> [2]Email:germaneau_at_sjtu.edu.cn Mobi:+86-136-4161-6480
> [3]http://hpc.sjtu.edu.cn
>
> References
>
> Visible links
> 1. mailto:vmd_at_ks.uiuc.edu
> 2. mailto:Email:germaneau_at_sjtu.edu.cn
> 3. http://hpc.sjtu.edu.cn/

-- 
NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/