lens
lens
gets/sets the camera's lens value.
Type: float
Sample Code
###### get lens value
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# get lens
lens = cam.lens
###### set the lens value
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# set lens to 100.0
cam.lens = 100.0
|