[JIM] Overlays - Example v.6.2

Code Example

{ "data-adapters": [ { "mappings": { "external": "external" }, "update-interval": 2, "name": "toa_overlay_sample", "type": "json", "url": "file:///toa_overlay_sample.txt" }, { "update-interval": 0, "name": "date-time", "type": "date-time" } ], "components": [ { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 480, "h": 50, "font": { "name": ".AppleSystemUIFont", "size": 40 }, "x": 80, "outline-width": -1, "y": 980, "draws-background": false, "hidden-when-empty": false, "string-value": "ToolsOnAir", "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "type": "text", "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "alpha": 1, "alignment": 0, "hidden": false, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 } }, { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 480, "h": 50, "font": { "name": ".AppleSystemUIFont", "size": 40 }, "x": 1360, "outline-width": -1, "y": 980, "draws-background": false, "hidden-when-empty": false, "metadata-value": { "accepts-number": false, "key": "Just_In_Channel_Name", "type": "datavalue", "accepts-string": true, "retain-previous-on-empty": true }, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "type": "text", "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "alpha": 1, "alignment": 2, "hidden": false, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 } }, { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "layer": 1, "w": 480, "h": 50, "font": { "name": ".SFNS-Regular", "size": 40 }, "x": 720, "outline-width": -1, "y": 980, "draws-background": true, "hidden-when-empty": false, "metadata-value": { "format": "dd/MM/yyyy HH:mm:ss", "accepts-number": false, "key": "date-time", "type": "date-time", "accepts-string": false, "retain-previous-on-empty": true }, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "type": "text", "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "alpha": 1, "alignment": 1, "hidden": false, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 } }, { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 480, "h": 50, "font": { "name": ".SFNS-Regular", "size": 40 }, "x": 720, "outline-width": -1, "y": 50, "draws-background": false, "hidden-when-empty": false, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "metadata-value": { "type": "timecode", "key": "timecode", "accepts-number": false, "accepts-string": false, "retain-previous-on-empty": false }, "type": "text", "corner-radius": 0, "alpha": 1, "layer": 1, "hidden": false, "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 }, "alignment": 1 }, { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 250, "h": 250, "x": 1600, "y": 3, "draws-background": false, "url": "file:///Users/administrator/Documents/Overlays_Samples/Combined_Example/toaicon250px.png", "hidden-when-empty": false, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0 }, "type": "image", "alpha": 1, "layer": 0, "hidden": false }, { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 384, "h": 50, "font": { "name": ".AppleSystemUIFont", "size": 40 }, "x": 80, "outline-width": -1, "y": 50, "draws-background": false, "hidden-when-empty": false, "metadata-value": { "prefix": "External: ", "accepts-number": true, "key": "external", "type": "number", "accepts-string": true, "retain-previous-on-empty": true, "minimum-integer-digits": 0, "maximum-integer-digits": 42, "minimum-fraction-digits": 0, "maximum-fraction-digits": 1 }, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "type": "text", "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "alpha": 1, "alignment": 0, "hidden": false, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 } } ], "async-data-updates": false }

External File

{"external": 2023}

Result

Download

The example JSON code can be downloaded here.

 

→ Use the sidebar to navigate.