Hi folks,
Here is my first LUA script created with the huge help of Sexan and Jeffos. It changes the track layout depending on the track content (audio, MIDI or video) or on the track state/function (folder, aux, separator). The script requires Reaper V5.02+ and the SWS extensions. To make it work you will also need to set up the layout actions in the Screensets/Layouts window like this:
RecArmLayTCP --ACTION 1
FolderLayTCP --ACTION 2
SeparatorLayTCP--ACTION 3
AuxLayTCP --ACTION 4
MidiLayTCP --ACTION 5
VideoLayTCP --ACTION 6
MixedLayTCP --ACTION 7
Same order for MCP but from 8-14
Here is the link for the Windows version:
https://stash.reaper.fm/25048/SmartLayoutOptimized.lua
And here is the link for the Mac version:
https://stash.reaper.fm/25210/SmartLa...timizedOSX.lua