def is_playing(self): """ Return whether project is playing. :type: bool """ return bool(RPR.GetPlayStateEx(self.id) & 1)
def is_recording(self): """ Return whether project is recording. :type: bool """ return bool(RPR.GetPlayStateEx(self.id) & 4)
def is_paused(self): """ Return whether project is paused. :type: bool """ return bool(RPR.GetPlayStateEx(self.id) & 2)
def play_state(self): """ Project play state ("play", "pause" or "record"). :type: str """ states = {1: "play", 2: "pause", 4: "record"} state = states[RPR.GetPlayStateEx(self.id)] return state