Just name the views, then "view" will automatically do the transition for you.
E.g. put the system in your first view, then save it
view name v1
....then put the system in your second view and save this second view, e.g. something like
move z -90
move y -15
view name v2
Then you can go immediately to either one, e.g.
view v1
view v2
view v1
.... or gradually using "frames" option, e.g. if you are starting in v1, then this will gradually go from v1 to v2 in 200 frames:
view v2 frames 200
Please see the help on naming and restoring views:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/view.html#name>
See also "fly"
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/fly.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 Sep 18, 2024, at 2:15 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
>
> Dear Chimera-X users !
>
> I have a question about the transition of the camera between two different views.
>
> E.g. I have (1) a closed zoom view on some selection with the defined coordinates
> view matrix camera 0.33173,-0.24137,-0.91197,-114.7,0.22734,0.95868,-0.17103,31.486,0.91557,-0.15059,0.3729,66.518
>
> and (2) some general view of the whole system, with the same coordinates.
>
> Now, starting from the closed view I need to gradually move camera from (1) to the (2),
> which can be manually achieved using move command e.g.
>
> # zoom out and shift camera to the right
> move z -0.3 300; move y -0.05 300
>
> Would it be possible additionally to provide coordinates of the both views in order to make such a camera transition more smooth and accurate ?
>
> Many thanks in advance !
>
> Enrico