External Camera#
- class RasterPropMonitor.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
RasterPropMonitor.cameras().- ExternalCamera.getPart()#
The part the camera is on.
- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- ExternalCamera.getName()#
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.- Property:
Read-only, cannot be set
- Return type:
string- Game Scenes:
Flight
- ExternalCamera.getMinFoV()#
The smallest field of view of the camera, in degrees.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ExternalCamera.getMaxFoV()#
The largest field of view of the camera, in degrees.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ExternalCamera.getFoV()#
- ExternalCamera.setFoV(value)#
The field of view that
RasterPropMonitor.ExternalCamera.image()renders at, in degrees. It starts atRasterPropMonitor.ExternalCamera.getMaxFoV(), as on an MFD camera page, and a value set is clamped to the camera’s range.- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ExternalCamera.image(width, height[, format[, quality]])#
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.
- Arguments:
width (
number) – The width of the image, in pixels.height (
number) – The height of the image, in pixels.format (
StdLib.ImageFormat) – The format of the image. Defaults toStdLib.ImageFormat.png.quality (
number) – The quality of a JPEG image, from 1 to 100. Defaults to75.
- Returns:
The image data.
- Return type:
Uint8Array- Game Scenes:
Flight