I have 1000+ cameras and I want to unwrap my mesh UV using project from view from all of them (so creating a UV layer from each camera's project from view) so I can add a UV_PROJECT modifier for each one to texture my mesh. However, Blender's project from view uses the current 3d view as its source. Therefore, I want to align my viewport to a selected camera before performing the project from view using Python.
How can I do this? On Blender's Aligning page, it provides "Align Active Camera to View" but not the inverse I need. I am new to Blender's API and workflow.