[chimerax-users] Surface rendered trajectory

Elaine Meng meng at cgl.ucsf.edu
Tue Mar 1 18:55:06 PST 2022


Eric's answer is great -- I would only add the minor point that after using the "2dlabels" command to create the label, you could use the "move label" mouse mode to drag it to where you want it in the window.

In the Right Mouse tab of the ChimeraX toolbar, the icon for this mousemode looks like "ATP" with an arrow under it.  Click the icon to assign the "move label" function to the right mouse button (= trackpad + Alt on Windows, trackpad + command key on Mac).
  
2dlabel command:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/2dlabels.html>

Right Mouse toolbar:
<https://rbvi.ucsf.edu/chimerax/docs/user/tools/mousemodes.html>

perframe 
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/perframe.html>

movie
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/movie.html>
<https://rbvi.ucsf.edu/chimerax/docs/user/movies.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco


> On Mar 1, 2022, at 5:48 PM, Eric Pettersen via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hi Venkat,
> 	You would use the 2dlabels command to show text on the frames as the trajectory plays.  The first thing you would do is create a 2D label that will be modified each frame, via a command like:
> 
> 	2dlabels text start xpos 0.1 ypos 0.1
> 
> You should check out the help for the 2dlabels command to get the size/color/position you actually want the label to have.
> 	After that this command (well, multiple commands but all on one line) will show the frame number and record the movie:
> 
> 	movie record; perframe "coordset #1 $1 ; 2dlabel all text 'Frame $1'" frame 23; wait 23; movie encode
> 
> So first, if the trajectory isn't model 1, change the "#1" in the coordset command to the appropriate model number.  Second, the two occurrences of "23" should be changed to however many frames your trajectory actually has.  Third, in case sending this by mail munged the quote characters, the outside quotes around the coordset and 2dlabel command are double quotes, and the inside quotes around Frame $1 are single quotes.  Lastly, the "$1" occurrences will be replaced with the frame number as the perframe command executes, which is why the 2D label will show the correct frame number as the trajectory plays.  You could of course change "Frame $1" to some other phrasing as you prefer.
> 
> --Eric
> 
> 	Eric Pettersen
> 	UCSF Computer Graphics Lab
> 
> 
>> On Feb 28, 2022, at 9:33 PM, Venkatareddy Dadireddy via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>> 
>> Hi,
>> I am visualizing MD trajectory in ChimeraX
>> and making movie of a trajectory.
>> I want to incorporate "time stamp" of a trajectory
>> into my movie. 
>> How can I do it in ChimeraX?
>> 
>> Thank you,
>> Venkat









More information about the ChimeraX-users mailing list