Awesome!!!
Ok seems like we're in similar frames of mind.. I also have a Stream Deck and have set up fades but I know zilch about scripting so I just used found images. Here's how I have mine set up:
The top row is fade in/out; the bottom also includes EqP fades. "?" prompts me to enter my own fade length and the other four buttons on each row pass along the value entered into the KMLink Parameter box to be pasted via KM.
Direct parameter access is preferable, but without knowing what I'm doing I think I'm better sticking to found images. At least I understand what each action in a KM macro is doing; scripts are a foreign language to me and I wouldn't know how to troubleshoot if things go awry. I'm currenly using a similar script I found on a forum somewhere for region gain, but if anything changes in an LP update, I'll be screwed!
"I made a load of if-then statements on the FadeLength buttons so it changes the colour of the selected Fade Length button"
Could you explain this a bit? Do you mean if/then within Stream Deck or within KM? Did you figure out a way to get SD button feedback triggered from KM macros? I'm probably misreading that, as I think it's a one-way conversation between SD and KM.
Among other things, I've set up Insert Plugin buttons on my SD too. See this post if you're interested in how: How to select a virtual instrument in Logic Pro X. Is it possible?
I'd love to be able to directly access plugin slots via scripts as my current macros are necessarily complex. Soundflow manages it, so it must be possible, but I don't think it's as simple as tabbing down UI lines, like in your script. I could be wrong.
Also, gosh darn it, your icons are so nice. I might have to up my game!