processing icon indicating copy to clipboard operation
processing copied to clipboard

OSC output from Runway

Open reborn225 opened this issue 6 years ago • 14 comments

Have set the address for OSC in Processing as the same in Runway. But it's not detecting OSC in Processing. Any clue?

reborn225 avatar Apr 25 '19 15:04 reborn225

Hey! Did you check the port?

cvalenzuela avatar Apr 25 '19 16:04 cvalenzuela

Hey! So the default on Runway is "127.0.0.1:57102". I did a port scan in Network Utility (mac) but it wasn't able to detect if 57102 was available or not... Is there any way to manually change the address and port in Runway by any chance?

reborn225 avatar Apr 26 '19 15:04 reborn225

Screen Shot 2019-04-26 at 11 46 52 AM

reborn225 avatar Apr 26 '19 15:04 reborn225

You can't change the ports for now. That feature will be enabled in future releases. Which Processing code are you using?

cvalenzuela avatar Apr 27 '19 16:04 cvalenzuela

I used the code from this runwayml / processing thread.

Side note, I tried OSCulator and OSC_data_monitor today and was not able to detect incoming OSC from Runway...

reborn225 avatar May 03 '19 04:05 reborn225

Im having same issue in touchdesigner were you able to resolve?

masterofshapes avatar Jun 18 '19 19:06 masterofshapes

Hi @reborn225 and @masterofshapes, you need to first create an OSC client and then send a message with the address /server/connect to Runway's OSC server at the port displayed within the app in order to start receiving data from Runway. Here's a working example with PoseNet: https://github.com/runwayml/processing/blob/master/posenet/posenet.pde. Just change the variable runwayPort to the port displayed in the app. Let me know if this works!

agermanidis avatar Jun 21 '19 22:06 agermanidis

Will try, thank you for the reply!

reborn225 avatar Jun 23 '19 16:06 reborn225

Processing was able to operate the example code you provided, but it still does not receive OSC messages from the port in Runway. Could I possibly visit the office and have you guys take a look on it? I live in New York as well and is a Music Tech student from Steinhardt. I want to create an audio-visual installation using PoseNet. Please let me know!

Kenji

reborn225 avatar Jun 24 '19 20:06 reborn225

Thanks for reply I just tried this in touch designer manually and also using your touch-designer example script both didn't work am I missing something? Does example on github work for touchdesigner in version 0.66 of runway?

masterofshapes avatar Jun 24 '19 22:06 masterofshapes

Hey guys - I'm having the same prob with Processing example for im2txt. I get a NullPointerException pointing to line 77. Here is the full console log from Processing:

2019-08-01 14:00:50.190 java[20802:535604] Can't open input server /Library/InputManagers/QuicKeysIM
OscP5 0.9.9 infos, comments, questions at http://www.sojamo.de/oscP5


### [2019/8/1 14:0:51] PROCESS @ OscP5 stopped.
### [2019/8/1 14:0:51] PROCESS @ UdpClient.openSocket udp socket initialized.
### [2019/8/1 14:0:52] PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 57200
### [2019/8/1 14:0:52] PROCESS @ UdpServer.run() UdpServer is running @ 57200
### [2019/8/1 14:0:52] INFO @ OscP5 is running. you (192.168.1.87) are listening @ port 57200
NullPointerException

It seems to only happen when Runway tries to send data over the connection. Like if I stop the model, launch the Processing sketch, and then start the model again, I get the NullPointerException error in Processing. I can also replicate the error if I change the port number in Processing to not match Runway and then change it back.

Best, Billy

billythemusical avatar Aug 01 '19 18:08 billythemusical

I just pushed a fix, can you try with the latest updates?

cvalenzuela avatar Aug 01 '19 18:08 cvalenzuela

im2txt.pde example now working on my end!

billythemusical avatar Aug 01 '19 18:08 billythemusical

hi, I am having same issue as @reborn225 , did anyone managed to sort OSC messages from the port in Runway?

It seems all good but it does not show the data in println() , this is the message i get:

OscP5 0.9.9 infos, comments, questions at http://www.sojamo.de/oscP5 [2019/8/31 17:14:51] PROCESS @ OscP5 stopped. [2019/8/31 17:14:51] PROCESS @ UdpClient.openSocket udp socket initialized. [2019/8/31 17:14:52] PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 57200 [2019/8/31 17:14:52] PROCESS @ UdpServer.run() UdpServer is running @ 57200 [2019/8/31 17:14:52] INFO @ OscP5 is running. you (192.168.0.21) are listening @ port 57200

Hope anyone who has managed to sort it out can help me with this matter.

Thanks a lot. C @chiaraZac Write

chiaraZac avatar Aug 31 '19 16:08 chiaraZac