Help to communicate Resolume with JavaOSC

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
gmccosta
Met Resolume in a bar the other day
Posts: 1
Joined: Sat May 18, 2019 19:43

Help to communicate Resolume with JavaOSC

Post by gmccosta » Sat May 18, 2019 19:52

Hey,

I'm using JavaOSC to build a java application to send OSC messages to Resolume.

At the Resolume preferences, I can see the messages are coming correctly, but the clip didn't start playing, can anyone help me?

Code: Select all

String myIP = "192.168.1.108";
        int myPort = 7000;

        OSCPortOut oscPortOut;

        Thread oscThread = new Thread();

        try {
            oscPortOut = new OSCPortOut(InetAddress.getByName(myIP), myPort);
        }catch (UnknownHostException e){
            return;
        }catch (Exception e) {
            return;
        }
        
        if(oscPortOut != null){
                
                Object[] thingsToSend = new Object[3];
                thingsToSend[0] = 1;
                
                OSCMessage message = new OSCMessage(myIP, thingsToSend);
                message.setAddress("/composition/layers/1/clips/1/connect/composition/selectedclip/connect");
                
                try{
                    oscPortOut.send(message);
                }catch(Exception e){
                }
Image

Zoltán
Team Resolume
Posts: 3824
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Help to communicate Resolume with JavaOSC

Post by Zoltán » Sun May 19, 2019 20:48

The address should be either
/composition/layers/1/clips/1/connect/
or
/composition/selectedclip/connect

The first will always connect the layer 1 column 1 clip, the second one will connect whichever clip is selected.
Theatre sound engineer, photographer, programmer, aka ravensc.
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu
VJ footage: https://goo.gl/58oHy7

Post Reply