link zoom/pan of views

Moderator: SecondMan

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

link zoom/pan of views

#1

Post by frankgerman » Wed Jan 09, 2019 2:15 am

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.

User avatar
Kristof
Fusionista
Posts: 479
Joined: Thu Aug 07, 2014 1:30 pm
Been thanked: 7 times

Re: link zoom/pan of views

#2

Post by Kristof » Wed Jan 09, 2019 2:20 am

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

Image

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

Re: link zoom/pan of views

#3

Post by frankgerman » Wed Jan 09, 2019 2:35 am

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.

User avatar
SirEdric
Fusionator
Posts: 1553
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 42 times
Contact:

Re: link zoom/pan of views

#4

Post by SirEdric » Wed Jan 09, 2019 5:51 am

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.

User avatar
SecondMan
Site Admin
Posts: 3094
Joined: Thu Jul 31, 2014 5:31 pm
Location: Vancouver, Canada
Been thanked: 23 times
Contact:

Re: link zoom/pan of views

#5

Post by SecondMan » Wed Jan 09, 2019 9:59 pm

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

User avatar
SirEdric
Fusionator
Posts: 1553
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 42 times
Contact:

Re: link zoom/pan of views

#6

Post by SirEdric » Wed Jan 09, 2019 11:13 pm

Always welcome, my friend...:-)

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

Re: link zoom/pan of views

#7

Post by frankgerman » Thu Jan 10, 2019 2:20 am

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

Greetings, Frank

User avatar
SirEdric
Fusionator
Posts: 1553
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 42 times
Contact:

Re: link zoom/pan of views

#8

Post by SirEdric » Thu Jan 10, 2019 6:23 am

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