Camera#
- class Camera#
Controls the game’s camera. Obtained by calling
camera.- mode#
The current mode of the camera.
- Attribute:
Can be read or written
- Return type:
- Game Scenes:
Flight
- pitch#
The pitch of the camera, in degrees. A value between
Camera.min_pitchandCamera.max_pitch- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- heading#
The heading of the camera, in degrees.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- distance#
The distance from the camera to the subject, in meters. A value between
Camera.min_distanceandCamera.max_distance.- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- fo_v#
The Field of View of the camera, in degrees. A value between
Camera.min_fo_vandCamera.max_fo_v.- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- min_pitch#
The minimum pitch of the camera.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- max_pitch#
The maximum pitch of the camera.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- min_distance#
Minimum distance from the camera to the subject, in meters.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- max_distance#
Maximum distance from the camera to the subject, in meters.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- min_fo_v#
The minimum field of view the camera in degrees.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- max_fo_v#
The maximum field of view the camera in degrees.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- default_distance#
Default distance from the camera to the subject, in meters.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- default_fo_v#
The default field of view the camera in degrees.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- focussed_body#
In map mode, the celestial body that the camera is focussed on. Returns
Noneif the camera is not focussed on a celestial body. Returns an error is the camera is not in map mode.- Attribute:
Can be read or written
- Return type:
- Game Scenes:
Flight
- focussed_vessel#
In map mode, the vessel that the camera is focussed on. Returns
Noneif the camera is not focussed on a vessel. Returns an error is the camera is not in map mode.- Attribute:
Can be read or written
- Return type:
- Game Scenes:
Flight
- focussed_node#
In map mode, the maneuver node that the camera is focussed on. Returns
Noneif the camera is not focussed on a maneuver node. Returns an error is the camera is not in map mode.- Attribute:
Can be read or written
- Return type:
- Game Scenes:
Flight
- focussed_crew_member#
When the internal camera is active the kerbal that is in focus Returns an error if the camera is not in IVA mode.
- Attribute:
Can be read or written
- Return type:
- Game Scenes:
Flight
- next_camera()#
Switch to the next available camera
- Game Scenes:
Flight
- previous_camera()#
Switch to the previous available camera
- Game Scenes:
Flight
- class CameraMode#
See
Camera.mode.- automatic#
The camera is showing the active vessel, in “auto” mode.
- free#
The camera is showing the active vessel, in “free” mode.
- chase#
The camera is showing the active vessel, in “chase” mode.
- locked#
The camera is showing the active vessel, in “locked” mode.
- orbital#
The camera is showing the active vessel, in “orbital” mode.
- iva#
The Intra-Vehicular Activity view is being shown.
- map#
The map view is being shown.