
I admit that "wait" often confuses me too. I usually just do it by trial and error, changing the script until it does what I want, playing it over and over. But "coordset" has the same isse as the movement commands, it generally also needs a wait unless you want it to happen at the same time as the commands after it, in this case rock. For "rock" I think you misunderstood "cycle" ... "cycle" is not the total number of image frames, it is the number of frames per cycle. If you want 1000 frames of motion total you would use this command instead. rock x 30 1000 Since one cycle has 136 frames by default, however, this does not end with the molecule in the same position as the start. You would need to use a multiple of 136, or change the number of frames per cycle to something that goes evenly into 1000 (e.g. 250). See "rock" usage and explanation of its options <https://rbvi.ucsf.edu/chimerax/docs/user/commands/rock.html> Some commands are smart enough so that they only need "wait" afterwards to wait for the whole command to finish instead of "wait N", but it is not consistent for all commands. I hope this helps, Elaine
On Apr 26, 2024, at 8:10 AM, Enrico Martinez <jmsstarlight@gmail.com> wrote:
Thank you very much Elaine ! Actually I've already looked at this page but without some examples it's a bit tricky to understand the proper syntax. So, for example if I incorporate one of those commands in the context of my script, do I need to add WAIT after each , e.g.
coordset #1 1,1000,1 rock x 30 cycle 1000 wait 1000
Many thanks in advance
Enrico
Il giorno ven 26 apr 2024 alle ore 17:04 Elaine Meng <meng@cgl.ucsf.edu> ha scritto: Yes. There are several movement commands "move" (translate), "roll" or "turn" (rotate), and "rock" (rotate back and forth) as well as "view" to save different views and gradually transition between them. These all have "frame" options to do the motion over a specified number of image update frames and are commonly used in movie scripting.
See "making movies" and the list of related commands with links to their help pages, as well as various other movie script examples also linked to the page. <https://rbvi.ucsf.edu/chimerax/docs/user/movies.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 Apr 26, 2024, at 6:08 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear Chimera-X users !
I would like to add some cinematographic effects such as changing the camera angle back and forth during a short recording time of MD movies. Could you suggest some scripting tricks that I could add to the following coordset routine:
# start recording movie record size 3840,2160 supersample 1
## play movie from beginning to the end coordset #1 1,1000,1 wait 1000
etc
Would it be possible to bend the camera automatically e.g. during the first 250 steps of recording ? Any other possibilities ?
Yours with thanks
Enrico