[chimerax-users] Zooming into the areas on click

Elaine Meng meng at cgl.ucsf.edu
Mon Aug 29 08:41:38 PDT 2022


Hi Dmitry,
You would need to figure out the ChimeraX commands that perform the motions that you want.  Normally you would have a session file with all your data, and with saved views (previously created with "view name" before you saved the session).  See Making Movies and links to related commands therein:
<https://rbvi.ucsf.edu/chimerax/docs/user/movies.html>

In the ChimeraX command script (.cxc file) that you would run on this session, you could go from one saved view to another and specify the number of frames to gradually move between them (again using "view" command).  Just changing the view with "view" would include any rotation/translation/zooming needed to go between your previously saved views. Of course your command script could do all kinds of other things display/undisplay models or atoms, change colors and styles, rotate ("turn"), translate ("move"), show 2d labels and arrows ("2dlabel"), zoom ("zoom"), etc.

Making such a ChimeraX command script is an iterative process.  You just keep running it over and over on your session and adjusting/adding commands until it does what you want. 

If you make a movie, the timing would be controlled entirely by the frame counts in the script.

If you run your script(s) "live" (interactively in ChimeraX when you are doing the presentation instead of showing a pre-recorded movie), you can make separate scripts for separate parts and control the timing by simply opening each .cxc file when you want.

Yet another approach for running the scripts "live" is to make an HTML outline of your presentation with click-to-execute links, like in our the "Quick Start" tutorial.  For example, each link could make ChimeraX go to a different view.
<https://www.rbvi.ucsf.edu/chimerax/docs/quickstart/index.html>

Then when you open the HTML in ChimeraX's built-in browser, you can click links to run individual commands or longer command scripts. The ChimeraX Browser help explains how to add the special links:
<https://rbvi.ucsf.edu/chimerax/docs/user/tools/helpviewer.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 Aug 29, 2022, at 4:34 AM, Dmitry Semchonok via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Dear colleague,
> 
>  
> For presentation purposes:
> 
>  
> I would like to show the full map/model structure, then I would like to zoom in on particular areas: area 1, then area 2, then…. (preferably in motion).
> 
> How is it possible to do in chimeraX? Probably as a movie? How?
> 
>  
> Thanks in advance!
> 
>  
> Kind regards,
> 
> Dmitry
> 
>  
>  
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users




More information about the ChimeraX-users mailing list