No internet connection
  1. Home
  2. How to

Streamdeck Decks: Allow a Variable for Button Text

By Jeremiah Moore @Jeremiah_Moore
    2019-11-22 06:17:11.144Z

    I'd like to make a script, macro etc, attach it to a button, and have the button text be drawn dynamically from a variable set inside the script. Perhaps the button slot can store the variable? Or a script can draw "button name" or "button variable" as part of its data sources?

    Here's a use-case: Spotting panel

    • array of buttons labelled for different spotting labels, i.e. "FX Door" "FX Car By"
    • I'd like to press one of the spotting buttons with a modifier key held down, and get a text entry window. In that window, type new spotting text, e.g. "FX Dog Bark" and click OK or type enter, and the button is now changed to use the new text.

    Can this be built today? I suspect not quite yet....

    -jeremiah

    • 3 replies
    1. Hi @Jeremiah_Moore

      Thanks - yes this can actually be done today with a script-only approach.
      If you search for showModal in the forum you can see some examples.

      For example in this:
      https://forum.soundflow.org/-493/how-to-control-the-stream-deck-device-with-the-showmodal-action

      Note this requires quite a thorough grasp of Javascript and how SF works with SD.

    2. In reply toJeremiah_Moore:

      I've built a dynamic deck now that allows for spotting clip groups where you can hold down Ctrl while clicking on a button to label that button.
      It's in the store now under Pro Tools Deck Spotting :)
      http://soundflow.org/store/pro-tools-deck-spotting