public class RunwayOSC extends Runway
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECT |
static java.lang.String |
DATA |
static java.lang.String |
DISCONNECT |
static java.lang.String |
ERROR |
static java.lang.String |
INFO |
static int |
PORT_OSC_FROM_RUNWAY |
static int |
PORT_OSC_TO_RUNWAY |
static java.lang.String |
QUERY |
DEFAULT_HOST, VERSION
Constructor and Description |
---|
RunwayOSC(PApplet parent)
a Constructor, usually called in the setup() method in your sketch to
initialize and start the Library.
|
RunwayOSC(PApplet parent,
java.lang.String host)
Constructor variant that takes in an IPv4 Address
for situations where Runway runs on a different computer on the same network
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
send a /server/connect message to Runway
|
void |
disconnect()
send a /server/disconnect message to Runway
|
void |
oscEvent(OscMessage message)
called internally by OscP5 library
|
void |
query(PImage input)
send a /query with a PImage sencoded as Base64 string within a JSON string (
|
void |
query(PImage input,
java.lang.String format,
java.lang.String key)
Send a /query OSC message to Runway with the passed image Base64 encoded with the selected format and as the value of the selected JSON key
|
void |
query(java.lang.String input)
send a query to Runway
Don't call this on a Runway instace, but a Runway sublcass instead.
|
drawPoseNetParts, version
public static final int PORT_OSC_TO_RUNWAY
public static final int PORT_OSC_FROM_RUNWAY
public static final java.lang.String CONNECT
public static final java.lang.String DISCONNECT
public static final java.lang.String QUERY
public static final java.lang.String DATA
public static final java.lang.String ERROR
public static final java.lang.String INFO
public RunwayOSC(PApplet parent)
parent
- - the parent PApplet (usually this)
public RunwayOSC(PApplet parent, java.lang.String host)
parent
- - the parent PApplet (usually this)
host
- - the IPv4 Address where Runway is runningpublic void connect()
public void disconnect()
public void query(PImage input)
{"image":)}
public void query(PImage input, java.lang.String format, java.lang.String key)
public void query(java.lang.String input)
Runway
public void oscEvent(OscMessage message)
message
- Processing Library RunwayML by George Profenza. (c) 2019