Skip to content

Instantly share code, notes, and snippets.

@DaveThw
Last active June 7, 2016 09:39
Show Gist options
  • Save DaveThw/bee2bc1a72585093b9ee32b0bb6c311d to your computer and use it in GitHub Desktop.
Save DaveThw/bee2bc1a72585093b9ee32b0bb6c311d to your computer and use it in GitHub Desktop.
Control template for remote control of ETC EOS desks over OSC
loadedInterfaceName = "EOS Remote Control";
interfaceOrientation = "portrait";
pages = [
/********** PAGE 0 *************/
[
{
"name":"userLabel",
"type":"Label",
"value":"User:",
"bounds": [0,.1,.2,.1],
},
{
"name":"userText",
"type":"Label",
"value":"<User>",
"bounds": [0.2,.11,.8,.08],
"color": "#333333",
"stroke": "#aaaaaa",
},
{
"name":"cmdLabel",
"type":"Label",
"value":"Cmd:",
"bounds": [0,.2,.2,.1],
},
{
"name":"cmdText",
"type":"Label",
"value":"<cmd>",
"bounds": [0.2,.21,.8,.08],
"color": "#333333",
"stroke": "#aaaaaa",
},
/* *** Bottom buttons *** */
{
"name": "refresh",
"type": "Button",
"bounds": [.61, .86, .18, .08],
"startingValue": 0,
"isLocal": true,
"mode": "contact",
"ontouchstart": "interfaceManager.refreshInterface()",
"stroke": "#aaa",
"label": "refresh",
},
{
"name": "menuButton",
"type": "Button",
"bounds": [.81, .86, .18, .08],
"mode": "toggle",
"stroke": "#aaa",
"isLocal": true,
"ontouchstart": "if(this.value == this.max) { control.showToolbar(); } else { control.hideToolbar(); }",
"label": "menu",
},
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment