コード例 #1
0
ファイル: bl_operators.py プロジェクト: suvrajeet01/mixer
    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"}
コード例 #2
0
    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"}