Streamdeck Decks: Allow a Variable for Button Text
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
- Christian Scheuer @chrscheuer2019-11-22 10:10:30.489Z
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-actionNote this requires quite a thorough grasp of Javascript and how SF works with SD.
Christian Scheuer @chrscheuer2019-11-22 10:29:00.621Z
This is also a good example:
https://forum.soundflow.org/-506/how-to-select-audio-suite-key-input-dynamically-via-the-stream-deck
- In reply toJeremiah_Moore⬆:Christian Scheuer @chrscheuer2019-11-22 11:14:21.765Z
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