When lining up the frame, the CTI should be at the frame which you used to create the clean plate. I then replace the Null with the clean plate – select Null in the Timeline and then dragging the clean plate from the Project Panel and holding down the ALT/Option key and then dropping the clean plate directly over the Null.
Now it’s a matter of making the 3D layer (clean plate) match the 2D layer WITHOUT messing about with the clean plate’s position property since this is the solved tracking data. Thus, you have the other transforms to mess about with and even the Corner Pin effect.
I use the following Expression on the Scale property –
distance = length(sub(position[2], thisComp.activeCamera.position[2]));
scale * (distance / thisComp.activeCamera.zoom)
This Expression scales the layer to fit its original size. Now it’s a matter of scrubbing the Anchor Point so that the clean plate’s layer edges match the comp edges. This is probably something that can be done with Expressions but I don’t know how – yet.
Now it’s a matter of drawing in your mask and feathering it.
FWIW, when I camera track with AE’s built-in 3D tracker, I get a slight perspective shift with a track/solved Null – no such thing with a track/solved Solid.
Finally, most folks use projection mapping for such tasks but I find my method sufficiently robust and much faster to set up.
HTH
RoRK
Intensive mocha & AE Training in Singapore and Other Dangerous Locations
Imagineer Systems (mocha) Certified Instructor
& Adobe After Effects CS6 ACE/ACI