I have a shot/ stitched VR footage that I need to do some compositing on. I have implemented a 3d object into it using a VR Plugin for After Effects. The issue is that I need to create a shadow map in a 3d software so that it will collide with the objects in the scene when the shadow falls, which requires me to do some blocking. I'm using C4D, how do I match the camera so it will match in After Effects?

Any suggestions will be greatly appreciated. Thank You!!!