No problem, thank you for your response Tom !

Have a great day

Enrico

Il giorno mar 5 mar 2024 alle ore 01:36 Tom Goddard <goddard@sonic.net> ha scritto:
Hi Enrico,

  The wait command needs the number of frames to wait when used with the coordset command.  For a few other commands (turn, move, roll) the wait command can be used without any arguments and it waits until they finish, but that is only for a few commands and does not work with coordset.

  Sorry for the delayed reply.  I think you sent this question a few weeks ago but it did not get delivered until today due to problems with our mailing list software.

Tom


On Feb 23, 2024, at 12:38 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> 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/