## link zoom/pan of views

Moderator: SecondMan

frankgerman
Posts: 3
Joined: Wed Jan 09, 2019 1:58 am

### link zoom/pan of views

Hello,
I wonder if one can link two views with each other, such that the zoom and pan are connected with each other.
For example, I have an original image in viewer 1 and a modified version (e.g. color correction, or a mask) in viewer 2.
If I want to look at fine details, I would like to zoom and pan into the image, having the same zoom level and position of the image in both viewers.
Later I probably want to have three views, showing different variants of an image, so I need to see the same details in each viewer. Zooming and panning for each individual viewer can be done, but it is not so really convenient if one has to inspect various details. It would be nice to zoom inside one viewer, and the other views update accordingly.

Thanks, Frank.

Kristof
Fusionista
Posts: 504
Joined: Thu Aug 07, 2014 1:30 pm
Been thanked: 10 times

### Re: link zoom/pan of views

You get that with the A and B buffers per viewer:

frankgerman
Posts: 3
Joined: Wed Jan 09, 2019 1:58 am

### Re: link zoom/pan of views

Thanks for the suggestion, Kristof. Probably the best at the end to use the A, B Buffers, so one has the different versions in the same viewer. I want to do some special masking techniques, where I need to see the mask or other intermediate results in comparison with the original image, on a detailed level. Frank.

SirEdric
Fusionator
Posts: 1741
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

### Re: link zoom/pan of views

Hi Frank.

You could make a Lua Script like this, and assign it to a button in your Toolbar.
Not fully interactive, but at least it'll gang your right Viewer to the Left on a click of a button...

Code: Select all

lViewer = comp:GetPreviewList().Left.View.CurrentViewer
rViewer = comp:GetPreviewList().Right.View.CurrentViewer

mZoom = lViewer:GetScale()
mPosX, mPosY = lViewer:GetPos()

rViewer:SetScale(mZoom)
rViewer:SetPos(mPosX, mPosY)
rViewer:Redraw()
Cheers.

Eric.

SecondMan
Site Admin
Posts: 3366
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 2
Location: Vancouver, Canada
Been thanked: 65 times
Contact:

### Re: link zoom/pan of views

Oh neat. Odd how it never occurred to me that that was something you could do after all these years... Thanks @SirEdric!

SirEdric
Fusionator
Posts: 1741
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

### Re: link zoom/pan of views

Always welcome, my friend...

frankgerman
Posts: 3
Joined: Wed Jan 09, 2019 1:58 am

### Re: link zoom/pan of views

Thanks Eric,
that sounds interesting. A great advantage that you can customize Fusion quite a bit through own scripts.

Greetings, Frank

SirEdric
Fusionator
Posts: 1741
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

### Re: link zoom/pan of views

Hey Frank.
Amongst many other things, scripting is amazingly cool in Fusion. You could basically customize the heck out of Fusion....