[chimerax-users] morph question

Elaine Meng meng at cgl.ucsf.edu
Thu Sep 29 10:29:48 PDT 2022


Hi Krishnan,
Maybe you are doing this already, but I recommend making the morph model only once and saving it in your associated session file, rather than creating it on the fly during your "movie" (or live playback) script.  Then you can pre-color and style the morph model however you like, and then hide it (e.g. "hide #3 model") and your script can "show #3 model" at the appropriate stage and play it back with "coordset."

When you run the morph command, however, you could use option "play false" to not play through the morph trajectory.  It will just show the first frame.
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/morph.html>

The "coordset" command controls which frame(s) of the trajectory are shown.  So when you use "morph" with "play true" (default) it just automatically runs the "coordset" command to play the whole thing, e.g. "coordset #3 1,51" or whatever is the specific command in your case will show up in the Log.

So if you'd already played the trajectory and hidden the morph model, then wanted to make it appear again but at the first frame, you could just set it to the first frame before showing it:

coordset #3 1
show #3 model

<https://rbvi.ucsf.edu/chimerax/docs/user/commands/coordset.html>
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/show.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 Sep 29, 2022, at 7:13 AM, Krishnan Raman via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> The morph creates a new model; when i display this new model the last(frame) with final conformation shows up on the screen. is there a way to  show the first frame when i play the morph using an executable command? i do have to show the model to play the morph using coordset command.
> thanks Krishnan




More information about the ChimeraX-users mailing list