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

Placing the camera at the object location and adjusting the SpringArm length by object radius does exactly that, as seen directly below.

Essentially this:

Image from Gyazo