Old 10-06-2020, 04:10 AM   #1
MisterLevy
Human being with feelings
 
Join Date: Sep 2020
Posts: 20
Default Try my WYSIWYG theme adjuster script

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

Last edited by MisterLevy; 10-20-2020 at 03:57 AM.
MisterLevy is offline   Reply With Quote
Old 10-06-2020, 11:33 PM   #2
MisterLevy
Human being with feelings
 
Join Date: Sep 2020
Posts: 20
Default

ORIGINAL POST:

This is my first ever post...

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.

Currently it can adjust the x, y, w, h, r, t, l, b parameters of every element. My next plan is to be able to adjust fonts.

I am new to scripting so I would appreciate some advice on where I need to improve.




QUESTION:
In the future I think it should be fairly easy to make elements change as the control panel sizes are adjusted. Adding layouts should be easy too. And changes based on record arm, track selected, etc should be possible but I haven't thought about how I will achieve that. I imagine I could end up with 60,000+ parameters. Will this lead to creating a theme that slows REAPER down?




FILES:
--Define Parameters.txt
--Apply Parameters.txt
damo-ThemeAdjuster 1.0.lua
Default 6.0 with Adjuster.ReaperThemeZip

Download ---> https://stash.reaper.fm/v/40452/damo...ster%201.0.zip

REQUIREMENTS:
You will need the latest SWS extension and Lokasenna's GUI Builder which can be installed via Reapack


INSTRUCTIONS:
The text found in --Define Parameters.txt needs to be inserted at the very start of a themes rtconfig.txt file


The text found in --Apply Parameters.txt needs to be inserted at the very end of a themes rtconfig.txt file


damo-ThemeAdjuster 1.0.lua needs to be run by REAPER. Hopefully the GUI should be self explanatory to Themers. All default values are set to 0 so you will need to start moving sliders before can see any elements.


Default 6.0 with Adjuster.ReaperThemeZip is a theme that I already inserted the define and apply parameters text. It pretty much broke the theme because it was already dependent on defined parameters. But you can still trial the script and see the elements move around.




NOTE:
If the reconfig.txt you use already has other Walter code and already uses defined parameters it will have bugs so it’s probably worth starting with a blank reconfig.txt.





Finally...
This script is based on Lokasenna's GUI Builder and would not be possible without it. Thank you Lokasenna.

Last edited by MisterLevy; 10-09-2020 at 02:05 PM.
MisterLevy is offline   Reply With Quote
Old 10-07-2020, 02:08 AM   #3
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default

I guess that some screenshots would be cool.
Also your installation process is maybe too complex, at least to me it looks that way at first glance. So, I don't won't to spend time trying something I'm not even sure I need.
__________________
Youtube | Website | Twitter
nikolalkc is offline   Reply With Quote
Old 10-07-2020, 02:39 AM   #4
mikostep
Human being with feelings
 
mikostep's Avatar
 
Join Date: Nov 2019
Posts: 92
Default

I`ve tried it and I like it.
Please add new parameters for fx inserts and send list from last update and make increase/decrease steps on sliders smaller.
Do you plan to add other controls like colours, margins etc?
mikostep is offline   Reply With Quote
Old 10-09-2020, 02:02 PM   #5
MisterLevy
Human being with feelings
 
Join Date: Sep 2020
Posts: 20
Default

Quote:
Originally Posted by nikolalkc View Post
I guess that some screenshots would be cool.
Also your installation process is maybe too complex, at least to me it looks that way at first glance. So, I don't won't to spend time trying something I'm not even sure I need.

Ok thanks, I will try to make it more user friendly to install.

At this stage it's not really usable but because I'm new to scripting I wanted other peoples advice before I got to far.




Quote:
Originally Posted by mikostep View Post
I`ve tried it and I like it.
Please add new parameters for fx inserts and send list from last update and make increase/decrease steps on sliders smaller.
Do you plan to add other controls like colours, margins etc?
Thanks. Yes I plan on adding all those parameters you mention.


You said "make increase/decrease steps on sliders smaller"
This is exactly the sort of feed back I'm after but could you please explain what you mean? The steps are set to 1 pixel which I assume we can't go smaller so maybe you mean something else.
MisterLevy is offline   Reply With Quote
Old 10-09-2020, 07:24 PM   #6
vidalsh
Human being with feelings
 
Join Date: Nov 2008
Location: madrid/spain
Posts: 1,036
Default

Image should be react to faders...
vidalsh is offline   Reply With Quote
Old 10-10-2020, 05:25 AM   #7
shosty
Human being with feelings
 
Join Date: Aug 2015
Posts: 249
Default

Definitely will be interested when fonts can be changed.
shosty is offline   Reply With Quote
Old 10-10-2020, 08:07 PM   #8
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 958
Default

Hmmm. Screenshots or any visual demonstrations?
cool is online now   Reply With Quote
Old 10-19-2020, 01:53 AM   #9
MisterLevy
Human being with feelings
 
Join Date: Sep 2020
Posts: 20
Default

Quote:
Originally Posted by vidalsh View Post
Image should be react to faders...
Did you mean that as I move the slider the image moves straight away and not when mouse button is unpressed? I tried that but it was really laggy. Sorry I'm not a coder.

Try version 3.0 and you will see I have done it a better way.






Quote:
Originally Posted by shosty View Post
Definitely will be interested when fonts can be changed.
My latest version includes font and font color changes.






Quote:
Originally Posted by cool View Post
Hmmm. Screenshots or any visual demonstrations?
Will do on next release








UPDATE:
Version 3.0 available (see first post)
MisterLevy is offline   Reply With Quote
Old 10-19-2020, 03:37 AM   #10
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

Quote:
Originally Posted by MisterLevy View Post
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/manage_file/...ster%203.0.zip
It says: You don't have permission to manage this file.
Skorobagatko is offline   Reply With Quote
Old 10-19-2020, 04:45 AM   #11
MisterLevy
Human being with feelings
 
Join Date: Sep 2020
Posts: 20
Default

Quote:
Originally Posted by Skorobagatko View Post
It says: You don't have permission to manage this file.
Thanks very much for letting me know.

I have updated the first post link to:

https://stash.reaper.fm/v/40503/damo...ster%203.0.zip
MisterLevy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.