Way to get number of stages without iterating over each part/stage
gavinunderdown opened this issue ยท 1 comments
The current stage number should be equal to the number of stages, and can be obtained directly:
import krpc
conn = krpc.connect()
print(conn.space_center.active_vessel.control.current_stage)
Documentation is here: https://krpc.github.io/krpc/python/api/space-center/control.html#SpaceCenter.Control.current_stage