Service#
This service provides the IVA screens, variables and external cameras of Raster Prop Monitor.
Note
A persistent variable is a number a script and the props share: a prop shows it, and a switch or numeric input sets it. Raster Prop Monitor updates the variables that depend on the vessel only for the active vessel.
- available#
Whether Raster Prop Monitor is installed.
- Attribute:
Read-only, cannot be set
- Return type:
bool
- static computer(part)#
The computer of a part. Throws an exception if the part has no Raster Prop Monitor computer.
- Parameters:
part (SpaceCenter.Part) – The part.
- Return type:
- Game Scenes:
Flight
- static computers(vessel)#
The computers of the parts of a vessel.
- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
- Return type:
list(
Computer)- Game Scenes:
Flight
- static global_persistent_variable(vessel, name)#
The value of a persistent variable of a vessel, or
Noneif it is not set. Throws an exception if the vessel has no Raster Prop Monitor computer.- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
name (str) – The name of the variable, without the
PERSISTENT_prefix.
- Return type:
float or None
- Game Scenes:
Flight
- static set_global_persistent_variable(vessel, name, value)#
Set a persistent variable of a vessel. The props that show it update. Throws an exception if the vessel has no Raster Prop Monitor computer.
- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
name (str) – The name of the variable, without the
PERSISTENT_prefix.value (float) – The value.
- Game Scenes:
Flight
- static remove_global_persistent_variable(vessel, name)#
Remove a persistent variable of a vessel. The props that show it update. Throws an exception if the vessel has no Raster Prop Monitor computer.
- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
name (str) – The name of the variable, without the
PERSISTENT_prefix.
- Game Scenes:
Flight
- static global_persistent_variable_changed(vessel, name)#
An event that fires when
global_persistent_variable()changes. The event lasts until it is removed. Throws an exception if the vessel has no Raster Prop Monitor computer.- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
name (str) – The name of the variable, without the
PERSISTENT_prefix.
- Return type:
- Game Scenes:
Flight
- static monitors(vessel)#
The monitors in the IVAs of a vessel’s parts. Throws an exception if the vessel is not the active vessel.
- Parameters:
vessel (SpaceCenter.Vessel) – The active vessel.
- Return type:
list(
Monitor)- Game Scenes:
Flight
Note
KSP builds IVAs only for the active vessel.
- static display(vessel, name)#
The display of a vessel with the given name, which every page whose
KRPCDisplayhandler names it shows.- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
name (str) – The name of the display.
- Return type:
- Game Scenes:
Flight
- static cameras(vessel)#
The external cameras on a vessel’s parts.
- Parameters:
vessel (SpaceCenter.Vessel) – The vessel.
- Return type:
list(
ExternalCamera)- Game Scenes:
Flight