vseries movie recording with frame labels
Hi, I want to record a vseries movie, a total of 20 frames (frame 0-19). I used the below script. I want to include a frame label (Frame 0 to 19) as the movie oscillates across frames. The frame numbers should appear in sync with the movie frames. How can I include that and record with vseries? movie record; vseries play #1 direction oscillate loop true; wait 200; movie encode ~/Desktop/vseries_movie1.mp4 Best Rayees
Hi Rayees, You can show a frame counter using the 2dlabels command, and you can adjust the label each frame using the perframe command. The easiest way to do the oscillating is just record one forward pass of 20 frames and use the movie encode command option "roundTrip true". That will record the frames forward and then copy them running backward. Then if you wanted to show it looping many (10) times set your video player to loop the video. Here is an old ChimeraX mailing list post that describes the labeling for the similar case of showing an atomic model trajectory. https://mail.cgl.ucsf.edu/mailman/archives/list/chimera-users@cgl.ucsf.edu/t... Tom
On Apr 6, 2026, at 3:58 PM, Rayees Mattoo via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi, I want to record a vseries movie, a total of 20 frames (frame 0-19). I used the below script. I want to include a frame label (Frame 0 to 19) as the movie oscillates across frames. The frame numbers should appear in sync with the movie frames. How can I include that and record with vseries?
movie record; vseries play #1 direction oscillate loop true; wait 200; movie encode ~/Desktop/vseries_movie1.mp4
Best Rayees _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu> To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu <mailto:chimerax-users-leave@cgl.ucsf.edu> Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
And here's another similar example flipping through a stack of volume z-planes and showing the z position. https://rbvi.github.io/chimerax-recipes/planes/planes.html Tom
On Apr 6, 2026, at 7:43 PM, Tom Goddard <goddard@sonic.net> wrote:
Hi Rayees,
You can show a frame counter using the 2dlabels command, and you can adjust the label each frame using the perframe command. The easiest way to do the oscillating is just record one forward pass of 20 frames and use the movie encode command option "roundTrip true". That will record the frames forward and then copy them running backward. Then if you wanted to show it looping many (10) times set your video player to loop the video.
Here is an old ChimeraX mailing list post that describes the labeling for the similar case of showing an atomic model trajectory.
https://mail.cgl.ucsf.edu/mailman/archives/list/chimera-users@cgl.ucsf.edu/t...
Tom
On Apr 6, 2026, at 3:58 PM, Rayees Mattoo via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi, I want to record a vseries movie, a total of 20 frames (frame 0-19). I used the below script. I want to include a frame label (Frame 0 to 19) as the movie oscillates across frames. The frame numbers should appear in sync with the movie frames. How can I include that and record with vseries?
movie record; vseries play #1 direction oscillate loop true; wait 200; movie encode ~/Desktop/vseries_movie1.mp4
Best Rayees _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu> To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu <mailto:chimerax-users-leave@cgl.ucsf.edu> Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
participants (2)
-
Rayees Mattoo -
Tom Goddard