def getServerStatus(self):
        if self.is_dummy:
            return -1

        server = OscServerThread.getInstance()
        if not server:
            return -1

        return server.server_status
    def isNsmLocked(self):
        if self.is_dummy:
            return False

        server = OscServerThread.getInstance()
        if not server:
            return False

        return server.is_nsm_locked
    def sendGui(self, *args):
        if self.is_dummy:
            return

        server = OscServerThread.getInstance()
        if not server:
            return

        server.sendGui(*args)
Exemple #4
0
    def set_server_status(self, server_status: int):
        if self.is_dummy:
            return

        server = OscServerThread.getInstance()
        if not server:
            return

        server.set_server_status(server_status)
    def informCopytoGui(self, copy_state):
        server = OscServerThread.getInstance()
        if not server:
            return

        server.informCopytoGui(copy_state)
    def getServerPort(self):
        server = OscServerThread.getInstance()
        if server:
            return server.port

        return 0
    def getServerUrl(self):
        server = OscServerThread.getInstance()
        if server:
            return server.url

        return ''
 def getServer(self):
     return OscServerThread.getInstance()
    def sendGuiMessage(self, message):
        self.sendGui('/ray/gui/server/message', message)

        server = OscServerThread.getInstance()
        if server:
            server.sendControllerMessage(message)
    def sendEvenDummy(self, *args):
        server = OscServerThread.getInstance()
        if not server:
            return

        server.send(*args)
    def hasServer(self):
        if not OscServerThread.getInstance():
            return False

        return not self.is_dummy
Exemple #12
0
 def get_server_even_dummy(self):
     return OscServerThread.getInstance()
Exemple #13
0
    def get_server(self):
        if self.is_dummy:
            return None

        return OscServerThread.getInstance()
Exemple #14
0
    def send_gui_message(self, message: str):
        self.send_gui('/ray/gui/server/message', message)

        server = OscServerThread.getInstance()
        if server:
            server.send_controller_message(message)
Exemple #15
0
 def get_client_templates_database(self, base: str) -> list:
     server = OscServerThread.getInstance()
     if server:
         return server.client_templates_database[base]
     return []