How can I make camera automatically change its location ,so that it would adjust to the models of different size?

The rotation is not very simple ,which is why I have to use timeline to set the rotation.