.. default-domain:: py .. highlight:: py .. currentmodule:: RasterPropMonitor Service ======= .. module:: RasterPropMonitor 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. .. attribute:: available Whether Raster Prop Monitor is installed. :Attribute: Read-only, cannot be set :rtype: bool .. staticmethod:: computer(part) The computer of a part. Throws an exception if the part has no Raster Prop Monitor computer. :param SpaceCenter.Part part: The part. :rtype: :class:`Computer` :Game Scenes: Flight .. staticmethod:: computers(vessel) The computers of the parts of a vessel. :param SpaceCenter.Vessel vessel: The vessel. :rtype: list(:class:`Computer`) :Game Scenes: Flight .. staticmethod:: global_persistent_variable(vessel, name) The value of a persistent variable of a vessel, or ``None`` if it is not set. Throws an exception if the vessel has no Raster Prop Monitor computer. :param SpaceCenter.Vessel vessel: The vessel. :param str name: The name of the variable, without the ``PERSISTENT_`` prefix. :rtype: float or None :Game Scenes: Flight .. staticmethod:: 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. :param SpaceCenter.Vessel vessel: The vessel. :param str name: The name of the variable, without the ``PERSISTENT_`` prefix. :param float value: The value. :Game Scenes: Flight .. staticmethod:: 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. :param SpaceCenter.Vessel vessel: The vessel. :param str name: The name of the variable, without the ``PERSISTENT_`` prefix. :Game Scenes: Flight .. staticmethod:: global_persistent_variable_changed(vessel, name) An event that fires when :meth:`global_persistent_variable` changes. The event lasts until it is removed. Throws an exception if the vessel has no Raster Prop Monitor computer. :param SpaceCenter.Vessel vessel: The vessel. :param str name: The name of the variable, without the ``PERSISTENT_`` prefix. :rtype: :class:`krpc.event.Event` :Game Scenes: Flight .. staticmethod:: monitors(vessel) The monitors in the IVAs of a vessel's parts. Throws an exception if the vessel is not the active vessel. :param SpaceCenter.Vessel vessel: The active vessel. :rtype: list(:class:`Monitor`) :Game Scenes: Flight .. note:: KSP builds IVAs only for the active vessel. .. staticmethod:: display(vessel, name) The display of a vessel with the given name, which every page whose ``KRPCDisplay`` handler names it shows. :param SpaceCenter.Vessel vessel: The vessel. :param str name: The name of the display. :rtype: :class:`Display` :Game Scenes: Flight .. staticmethod:: cameras(vessel) The external cameras on a vessel's parts. :param SpaceCenter.Vessel vessel: The vessel. :rtype: list(:class:`ExternalCamera`) :Game Scenes: Flight