Skip to content

Instantly share code, notes, and snippets.

@gdyr
Created December 30, 2019 19:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyr/e1fb43e0823416c2d2106f903217fe7e to your computer and use it in GitHub Desktop.
Save gdyr/e1fb43e0823416c2d2106f903217fe7e to your computer and use it in GitHub Desktop.
Q-Sys Dynamic button images
--[[
Notes:
- Remove any data:image/type; prefix
- Legend = '' prevents the Style JSON from appearing as the button label
- DrawChrome hides the button itself and just displays the image.
]]
Controls['Artwork'].Style = json.encode({
DrawChrome = false,
IconData = 'my_base64_string, no data:image; prefix',
Legend = ''
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment