External Camera#
- class ExternalCamera#
A Raster Prop Monitor external camera: a part that the MFD camera pages show, such as the JSI External Radial-mount Camera. Obtained by calling
cameras().- part#
The part the camera is on.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- name#
The camera’s identifier, e.g.
ExtCam1, which the MFD camera pages select it by. The player sets the number in the part’s menu.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- min_fov#
The smallest field of view of the camera, in degrees.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- max_fov#
The largest field of view of the camera, in degrees.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- fov#
The field of view that
ExternalCamera.image()renders at, in degrees. It starts atExternalCamera.max_fov, as on an MFD camera page, and a value set is clamped to the camera’s range.- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- image(width, height[, format=StdLib.ImageFormat.png][, quality=75])#
The camera’s view as an image, rendered now. Streamed at a rate, it is a video of the camera, for which JPEG is smaller and faster. Throws an exception if the camera is not on the active vessel.
- Parameters:
width (int) – The width of the image, in pixels.
height (int) – The height of the image, in pixels.
format (StdLib.ImageFormat) – The format of the image.
quality (int) – The quality of a JPEG image, from 1 to 100.
- Returns:
The image data.
- Return type:
bytes
- Game Scenes:
Flight