Quote:
Originally Posted by vanhaze
No sweat, thank you :0)
Again : would be great if it's color can be changed, to visualize the state of Repeat.
|
There might be a possible workaround for this.
This is a very simple script I made (for Reaper ver. 5.x) which basically loads one of two themes (with different loop colors) dependent on the current Loop/Repeat-State.
The naming of the files, scripts, etc. in this example was chosen for a better clarity. But you can of course change them to whatever you want
It's best to try it out first with a new portable Reaper install: http://www.kennymania.com/videos/rea...all-of-reaper/
Otherwise make a backup of your Reaper folder, export your configurations, etc. before, just in case!
(1A) Go to the Actions-List and open the
"Theme Development: Show theme tweak/configuration window"
(1B) Press [Save Theme ...] and save it as
"loopDisabled.ReaperTheme"
(1C) Find the option
"Timeline background (in loop points)" and change it to a color you want to use for active loops
(1D) Press [Save Theme ...] again and save it as
"loopActive.ReaperTheme"
(2A) Go to the Actions-list , choose ReaScript: [New] and name the file
"changeLoopColor.lua"
(2B) Insert the following code, then close the code window and save the changes
Windows:
Quote:
loopState = reaper.GetSetRepeat(-1)
if loopState == 0 then
themeFile = reaper.GetExePath() .. "\\" .. "ColorThemes" .. "\\" .. "loopDisabled.ReaperTheme"
reaper.OpenColorThemeFile(themeFile)
end
if loopState == 1 then
themeFile = reaper.GetExePath() .. "\\" .. "ColorThemes" .. "\\" .. "loopActive.ReaperTheme"
reaper.OpenColorThemeFile(themeFile)
end
|
OSX:
Quote:
loopState = reaper.GetSetRepeat(-1)
if loopState == 0 then
themeFile = reaper.GetExePath() .. "/" .. "ColorThemes" .. "/" .. "loopDisabled.ReaperTheme"
reaper.OpenColorThemeFile(themeFile)
end
if loopState == 1 then
themeFile = reaper.GetExePath() .. "/" .. "ColorThemes" .. "/" .. "loopActive.ReaperTheme"
reaper.OpenColorThemeFile(themeFile)
end
|
If the two script lines with the paths don't work this way, change the lines to the absolute paths like:
Windows: themeFile = "[insert path to file here]\loopActive.Reapertheme"
OSX: themeFile = "[insert path to file here]/loopActive.Reapertheme"
(3) Go to Action-List and choose Custom Actions: [New], name it
"toggleLoopColor" and add
[Transport: Toggle repeat]
[Script: changeLoopColor.lua]
(4) Add a button to a toolbar and assign the custom action
"toggleLoopColor"
(5) So now everytime you hit the custom button in the toolbar the repeat-button and loop selection color should toggle accordingly.