I’m trying to change the focal length of a camera in-game.
I have tried this:
cameraFL = bpy.data.cameras["Camera"] cameraFL.lens = 11.0
This doesn’t do anything in-game but changes the focal length of the camera in Blender when I stop the game.
Maybe it doesn’t work when I’m combining it with Class KX.
Also when I try to change the camera in-game, it doesn’t work.
bpy.context.scene.camera = bpy.data.objects["CameraLIFT"]
This changes the camera after I stop the game in Blender.