Hello Matt,
I may have a solution using “Set Matte”. Take a look at this AE project.
Pay attention, the Collapse Transformation (the Sunshine icon) of the Pre comp MUST stay OFF, or the Set Matte position will bug (activate the Sunshine if you want to see the bug when it’s ON).
SOLUTION A
14284_solutiona.aep.zip

JB