How to make automatic change of camera position from Static mesh?

How can I get the Spring Arm into a variable?