Here's a scene file I created more than 10 years ago (time flies) which I used to insert greenscreen keyed video footage into 3D environments.
With the use of the userdata I could then move the keyed live action character into my 3D scene.
I extensively used this setup for a short story I created.
Camera_Resize_RefPlane.c4d