def execute(self, context): from mixer.broadcaster.room_bake import download_room, save_room prefs = get_mixer_prefs() props = get_mixer_props() room_index = props.room_index room = props.rooms[room_index].name attributes, commands = download_room(prefs.host, prefs.port, room) save_room(attributes, commands, self.filepath) return {"FINISHED"}
def execute(self, context): from mixer.broadcaster.room_bake import download_room, save_room prefs = get_mixer_prefs() props = get_mixer_props() room_index = props.room_index room = props.rooms[room_index].name protocol = props.rooms[room_index].protocol attributes, commands = download_room( prefs.host, prefs.port, room, bpy.app.version_string, mixer.display_version, protocol == "Generic" ) save_room(attributes, commands, self.filepath) return {"FINISHED"}