Docking Camera#
Provides functionality to interact with the Docking Camera (KURS) mod. Tested with Docking Camera (KURS) 1.3.9.
Example#
The following example saves the image from an onboard camera of the active vessel to a file. The camera must be switched on:
import krpc
conn = krpc.connect(name="Docking Camera Example")
part = conn.space_center.active_vessel.parts.with_name("OnboardCamera")[0]
camera = conn.docking_camera.camera(part)
with open("camera.png", "wb") as file:
file.write(camera.image())