I would like to make my theme adjuster script available for others to use and hopefully receive some advice on where I need to improve.
As I am new to scripting I would appreciate some advice on where I need to improve. I will take my time with this script to leave time for others to have input.
QUESTION:
I imagine I could end up with 100,000+ parameters. Will this lead to creating a theme that slows REAPER down? (edit: I have a different idea now so I think I have avoided having so many parameters)
v1.0
It can adjust the x, y, w, h, r, t, l, b parameters of every element.
Download --->
https://stash.reaper.fm/40452/damo-T...ster%201.0.zip
INSTRUCTIONS:
See next post
v2.0
added: Parameters can change based on width and height of control panel
Download --->
https://stash.reaper.fm/v/40454/damo...ster%202.0.zip
INSTRUCTIONS:
1/ Unzip file
2/ Place .ReaperThemeZip file in REAPER's "ColorThemes" folder and select the theme in REAPER.
3/ Load .lua script file via REAPER'S action window and run it
Done!!!
v3.0
added: change fonts
added: change font colours
added: save different layouts
added: export parameters as WALTER to text file
Download --->
https://stash.reaper.fm/v/40503/damo...ster%203.0.zip
INSTRUCTIONS:
Download is a zip file that contains a theme adjuster script and a version of the Default 6 Theme that can be adjusted with the script. Place the files in the appropriate folders then load and run the theme and script.
The script can export the parameters as a Layout in WALTER format to a text file. Open the text file and copy the text and paste that text into a theme rtconfig.txt file. (preferably at the end)
QUESTION:
How to use Zones???
ANSWER:
- This script divides a control panel into a 3x3 grid. Columns A - C and Rows 1 - 3.
- All elements disappear in A1.
- The zone sliders set the height and width of where the zones start for each element.
- Use the zone buttons to adjust parameters for an element while it is in that particular zone.
Warning!!!
Be careful the control panel is in the same zone as the zone you are editing. Otherwise any change you make will not be visible.
IMAGES:
All the free space in these images will be filled with more controls later
COMING FEATURES:
In no particular order...
- Adjust margins
- Adjust folder indents
- Colour presets
- Adjust colour based on track colours
- Add recarm & track_selected support
- Copy parameters to another element
- Adjust several parameters at once
- Scale all parameters
- Adjust Control Panel sizes
...I'm open to suggestions