Hi everyone. I am a novice in blender python scripting. my project is that i have a 3d model and i want to render its images keeping the camera at different angles. For example i take a picture by keeping the camera at (x,y,z) coordinates. Then i take a second picture at coordinates (x1,y1,z1). The problem that i am facing is that as i move the camera to another location i have to adjust its rotation and translation everytime manually to get the object in the centre and perform rendering. Is there any way to adjust it automatically???. I just move the camera to the coordinates specified in my script and blender automatically takes care of the rotation and translation that i do manually. I have written a few python scripts but nothing could solve this issue. Plz help out if anybody knows.
Select camera, shift select object, CTRL+T, “Track to Constraint”