Here you go. Reception of "/disabled" on OSC will enable/disable the modal panel.
{
"createdWith": "Open Stage Control",
"version": "1.10.3",
"type": "session",
"content": {
"type": "root",
"id": "root",
"visible": true,
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"colorText": "auto",
"colorWidget": "auto",
"alphaFillOn": "auto",
"padding": "auto",
"html": "",
"css": "",
"colorBg": "auto",
"layout": "vertical",
"justify": "start",
"gridTemplate": "",
"contain": true,
"scroll": true,
"innerPadding": true,
"verticalTabs": false,
"variables": "@{parent.variables}",
"traversing": false,
"value": "",
"default": "",
"linkId": "",
"address": "auto",
"preArgs": "",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"script": "",
"widgets": [
{
"type": "button",
"top": 10,
"left": 30,
"id": "button_1",
"visible": true,
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"expand": true,
"colorText": "auto",
"colorWidget": "auto",
"colorStroke": "auto",
"colorFill": "auto",
"alphaStroke": "auto",
"alphaFillOff": "auto",
"alphaFillOn": "auto",
"lineWidth": "auto",
"padding": "auto",
"html": "",
"css": "",
"colorTextOn": "auto",
"label": "My Interface",
"vertical": false,
"wrap": false,
"on": 1,
"off": 0,
"mode": "push",
"doubleTap": false,
"value": "",
"default": "",
"linkId": "",
"address": "auto",
"preArgs": "",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"script": ""
},
{
"type": "modal",
"top": 10,
"left": 20,
"id": "modal_1",
"visible": "@{this}",
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"expand": "false",
"popupWidth": "100%",
"popupHeight": "100%",
"popupLeft": "auto",
"popupTop": "auto",
"relative": false,
"ignoreTabs": false,
"colorText": "auto",
"colorWidget": "auto",
"colorStroke": "auto",
"colorFill": "auto",
"alphaStroke": "auto",
"alphaFillOff": "auto",
"alphaFillOn": "auto",
"lineWidth": "auto",
"padding": "auto",
"css": "",
"colorBg": "rgba(130,44,44,1)",
"layout": "grid",
"justify": "start",
"gridTemplate": 1,
"contain": true,
"scroll": true,
"innerPadding": true,
"label": "auto",
"popupLabel": false,
"popupPadding": "auto",
"variables": "@{parent.variables}",
"traversing": false,
"doubleTap": false,
"value": "",
"default": "",
"linkId": "",
"address": "/disabled",
"preArgs": "",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"script": "",
"widgets": [
{
"type": "text",
"top": 0,
"left": 0,
"id": "text_1",
"visible": true,
"comments": "",
"width": "auto",
"height": "auto",
"expand": true,
"colorText": "auto",
"colorWidget": "auto",
"colorStroke": "auto",
"colorFill": "auto",
"alphaStroke": "auto",
"alphaFillOff": "auto",
"alphaFillOn": "auto",
"lineWidth": "auto",
"padding": "auto",
"html": "",
"css": "",
"vertical": false,
"wrap": false,
"align": "center",
"value": "The interface is disabled",
"default": "",
"linkId": "",
"address": "auto",
"preArgs": "",
"decimals": 2,
"target": "",
"script": ""
}
],
"tabs": []
}
],
"tabs": []
}
}