Mathematical relationship between Motion parameters for two images.
An artist friend has painted a scene that I want to use in my next audio-visual. It has several layers in Photoshop, and was painted so that I can move and scale the objects on the different layers to suit my needs.
I have imported the image into Premiere as a layered PSD, put those layers on separate Premiere layers, and away I go. I can make this person larger or smaller (closer or more distant), put that vehicle over there and so on, but I also want to pan and zoom. However, if I pan away from a person, I want that person to appear as if they were locked to the underlying background.
Let me put some numbers to this problem.
Background Layer
The background comes in as 5171 x 2909 pixels, but is used in a 1080P timeline. It fills the screen if Motion has these settings (960, 540, 37.2): 1080/2909 = 37.2. I want to pan and zoom the background to (1736, 104, 67.2). I've panned left and zoomed in.
Aunt Leila Layer
I've placed Aunt Leila above the background at (904, 324, 100). The artist painted her small, but I want to make her larger and put her closer to the camera. She's in the foreground now.
Question
How do I transform Aunt Leila's parameters, so that she stays in the same relative position on the background when I zoom and pan? To use numbers again:
When background goes from (960, 540, 37.2) to (1736, 104, 67.2)
I want Aunt Leila to go from (904, 324, 100) to (X, Y, S).
How do I calculate X, Y and S?
I think S is easy to calculate: 67.2/37.2 x 100 = 180.6. But X and Y?
