OF addon allows you to serve any variables you want (bool, float, int, string) on the network, so that you can modify them from away. Uses server client architecture, where your app is the server. It communicate both ways; you can modify variables from a client, but you can also see pull variable states from the client, so that you can track variable values remotely.
It's OSC based, and it includes a native OSX Client.
It uses Macros + the singleton pattern to make it very easy to share any variable you want to edit remotely, in any class of your project.
http://www.youtube.com/watch?v=kp1rajoN0o4
Easy! Declare variables in your project, as you normally would:
class testApp : public ofBaseApp{
public:
float x;
float y;
}
Then tell the server to share them:
void setup(){
OFX_REMOTEUI_SERVER_SETUP(); //start server
//expose vars to the server
OFX_REMOTEUI_SERVER_SHARE_PARAM(x, 0, ofGetWidth());
OFX_REMOTEUI_SERVER_SHARE_PARAM(y, 0, ofGetHeight());
}
void update(){
OFX_REMOTEUI_SERVER_UPDATE(0.016666f);
}
And use the supplied OSX Client to view and edit them
PD: to use ofxOsc in your project, which ofxRemoteUI requires, you wil need to add this to you project's header search paths:
../../../addons/ofxOsc/libs ../../../addons/ofxOsc/libs/oscpack ../../../addons/ofxOsc/libs/oscpack/src ../../../addons/ofxOsc/libs/oscpack/src/ip ../../../addons/ofxOsc/libs/oscpack/src/ip/posix ../../../addons/ofxOsc/libs/oscpack/src/ip/win32 ../../../addons/ofxOsc/libs/oscpack/src/osc ../../../addons/ofxOsc/src
- make a multiplatform client, maybe based on ofxUI?