zoomTo()

Set the camera view angle to a new value. A value of 180.0 corresponds to quite a strong fish eye, a value of 45.0 to a relatively normal, distortion-free perspective.

<camera>.zoomTo(deg)
  • deg ... degrees to set the camera view angle

Relevant examples: camera_all.py , ALL

In Context

def onSetup(self):
    self.camera.zoomTo(90.0)
Initiated by Stephan Hechenberger
Thanks to CADRE's 103