Hey team, I have always wished DAWs would add a solo button to the top of each plugin window. In my workflow, it's common for me to check a track in solo when I'm working on a plugin inserted on that track. I was thinking of a solution and came up with the idea of a toolbar button. Is it possible to create a script that, when run, checks for the top-most plugin* and then solos the track that the focused plugin is inserted on? *because as soon as you press a toolbar button, the plugin will no longer be in-focus. All the best,
Would 'last touched' plugin (i.e. where you last moved a control on the GUI) be good instead of 'top-most' ? This would be easy to do. And should "solos the track" be an exclusive solo (meaning unsolo all other tracks) or accumulating solo ?
Here's what I came up with so far: Not a toolbar button but a small GUI, based on last touched FX parameter (don't know how determine 'top-most'). Clicking on the GUI toggles solo (indicated via red) for the current 'active' track (track containing last touched FX). Could this be useful ? edit: Actually 'last focused FX' seems to work also. Needs some testing.
--------------------------------- Nemo me impune lacessit
Hey NoFish, thanks for looking into this! I imagine solo-exclusive being most useful, thought perhaps it should be a switch in the user area of the script. My only gripe is that it's so large. Would it need to be integrated into SWS in order to get toolbar button feedback?
Actually.. wait a sec.. I think the toolbar button doesn't actually NEED to give any feedback. It's a simple thing of; have plugin open, press button to run script, track is exclusive solo'd. Am I crazy? It could actually be that easy if you can make 'last focused FX' tell us which track it's on.
so here's a minimalist toolbar button version: Currently it doesn't create any undo points (thought it wouldn't make much sense or ?) Lua script, anyone feel free to modify / improve. Code:
That looks great, mate! I'm looking forward to adding it to my toolbar. I see from the forum notification email you decided to remove the undo lines? I'll try it without undo points as it's hardly going to do any damage. Thanks again. :)
Hey NoFish, I'm back in town and went to install this script and noticed the second version is much shorter than the first. Is that an example of optimisation?