Here’s how I do this:
- In the “Framing Comp”, where a copy of the footage lives, create a “Framing Solid” that has the same dimensions as your footage
- Parent it to the footage.
- In the other comp that you want framed add these expressions to the footage layer.
anchorPoint:
L = comp("Framing Comp").layer("Framing Solid");
L.parent.fromComp(L.toComp([L.width/2, L.height/2]));
position:
[thisComp.width/2,thisComp.height/2];
scale:
s=comp("Framing Comp").layer("Framing Solid").transform.scale[0];
value * [100/s];
rotation:
comp("Framing Comp").layer("Framing Solid").transform.rotation * -1;
This way postition, scale, and rotation will be implemented from the framing Solid, and you can freely change the anchorPoint of the framing solid which can help in certain rotation and zoom effects.
BTW, it is absolutely a practical and more intuitive way to handle these kinds of pan & scan effects.