You need to put a wait command before you do the movie encode command. Only the wait command causes frames to be rendered. So if you want to render 300 frames you have to add wait 300 after the coordset command. Tom
On Feb 23, 2024, at 8:22 AM, Elaine Meng via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
As far as I know, you need to give the number of frames. Instead of trying to make a generic command script that will cover all your of your different movies of different lengths, you may need to also use python that determines the number of frames in each specific case. Somebody else would have to help with that, however, as I don't know python.
Elaine
On Feb 23, 2024, at 12:38 AM, Enrico Martinez <jmsstarlight@gmail.com> wrote:
Okay, thank you very much Elaine !
Actually I tried to decompose my question regarding the automatization of the movie recording in ChimeraX.
For example if I do the following script:
# MAKE MOVIE WITH CHIMERA-X # start recording movie record size 3840,2160 supersample 1 # play reverse movie: from the end to beginning coordset #1 -1,1,-1
# encode the results movie encode format h264 quality highest output /home/enrico/PRIVATE/test_movie.mp4
so If I execute this script, the chimera-X will sends me an error that there are no frames to encode since it tries to run all commands at the same time. Alternatively I may add WAIT just before the movie encode, but in this case I need to explicitly define the period (e.g. wait 20).
Would it be possible rather to insert this pause without the explicit definition of the period (untull he coordset reaches the first frame ) ?
Many thanks in advance
Enrico
Il giorno gio 22 feb 2024 alle ore 20:17 Elaine Meng <meng@cgl.ucsf.edu> ha scritto: You could just try it to see for yourself, but yes and yes.
As described in the help: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/coordset.html>
coordset #1 -1
...goes to the last frame, so your commands act as you describe.
Elaine
On Feb 22, 2024, at 10:33 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Just to precise ::
Coordset #1 -1,1,-1
Would this play the movie backwards from the last to the first frame ? ( so in this case I do not precise explicitly the number of the last frame)
Alternatively
Coordset #1 1,-1,1
Plays the trajectory from the beginning to the end , doesn’t it ?
Many thanks in advance !!
Le ven. 2 févr. 2024 à 17:14, Elaine Meng <meng@cgl.ucsf.edu> a écrit : Yes, you can simply use the "coordset" command to play the trajectory in reverse by specifying a negative step, e.g.
coordset #4 10000,1,-1
where as the help page says, #4 is the trajectory model number, 10000 is the trajectory frame to start, 1 is the trajectory frame to end, -1 is the step. Please see the page:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/coordset.html>
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
On Feb 2, 2024, at 5:40 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
One more question about movie making in Chimera-X
Is there some possibility to record molecular movie in the reverse order from a given multi-model pdb file ? E.g. having 1000 models, I would like to record it from 1000,999,998 ... 1 .
Many thanks in advance
Enrico
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/