Old 05-29-2022, 03:52 AM   #1
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,984
Default WT Theme Assembler Script

With my Default V6 Modders' Supplies you've been able to choose from a selection of different elements to make your own mod theme based on the Default 6. Next step onward from that has been to radically increase the range of options and make it straightforward for ordinary users to choose and apply them. So, here is the initial offering of:

Theme Assembler



It is a script I have written that shows how the various options look, and automates the copying of the files into its own theme called 'Assembled_Theme' and updates it, in real time. It can also do some more complex stuff than that, like rewrite values in the rtconfig file (it will do more of that in future) but the key thing is that you don't need to understand what any of that means ...just point and click:



The script itself is very much a work in progress, but the theme it outputs is a fully functional Reaper theme based on the Default 6 theme, with complete 100%, 150% and 200% HiDPI support throughout and the usual theme adjuster.

Instructions

- Download THIS.

- Choose Options > Show REAPER resource path in explorer/finder. Extract content of the zip (the 'theme_assembler.lua' file AND the 'theme_assembler' folder) into the 'scripts' folder there.

- Choose Actions > Show action list. In the bottom right choose New action > Load ReaScript. Choose theme_assembler.lua and click Open.

- In the actions list you'll now see Script: theme_assembler.lua. Choose it and click Run.

- First time you run the script, it will ask "Assembled theme not found. Create theme?" Click OK

- Click an element to see what choices there are, click a choice and the script will copy the files over and refresh the theme.

And that's it. Everything it does is just a change to the completely normal 'assembled_theme' that you will find in your color themes folder if you want to have a look, and you can rename that theme and mess with it further if you know how themes work.

If you come up with a combination you like, please do share a screenshot, it'll be fun to see what's working and what direction I should take more elements in!

--------------

Instructions are shown here if you don't like reading:



...thanks Reaperblog!


--------------



Current state (theme_assembler_0110)






  • The script should not misbehave at all, but in use it may appear pretty janky in places at this point, and its appearance is entirely placeholder to get the functionality working. I'm still new to this coding thing.
  • I've only done some of the elements. I'm never going to do all the elements.
  • Something weird going on with some of the shadows.
  • Limited range of choices, particularly for some elements, at this point. I'll just keep adding stuff as and when I feel the urge.
  • Some of the light background record arm buttons look bad.
__________________
The House of White Tie

Last edited by White Tie; 01-10-2023 at 12:04 PM. Reason: new version
White Tie is offline   Reply With Quote
Old 05-29-2022, 04:02 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Wow, this is next level theming!!
X-Raym is offline   Reply With Quote
Old 05-29-2022, 04:23 AM   #3
Pet
Human being with feelings
 
Pet's Avatar
 
Join Date: Nov 2015
Location: Germany
Posts: 1,016
Default

This is absolutely amazing, you guys are simply stunning!
__________________
If the v5 Default Theme is too bright for you take a gander at my mod of it: Default v5 Dark Theme
Pet is offline   Reply With Quote
Old 05-29-2022, 04:42 AM   #4
axel_ef
Human being with feelings
 
axel_ef's Avatar
 
Join Date: Jan 2007
Location: Erfurt
Posts: 790
Default

There's one problem in Linux. It creates the directory Assembled_Theme_Resources as subfolder of a folder named initial.

/home/axel/.config/REAPER/ColorThemes/initial/Assembled_Theme_Resources

and shows an error:

Code:
theme_assembler.lua:396: cannot open file '/home/axel/.config/REAPER/ColorThemes/Assembled_Theme_Resources/rtconfig.txt' (No such file or directory)
I moved the folder to /home/axel/.config/REAPER/ColorThemes
axel_ef is offline   Reply With Quote
Old 05-29-2022, 09:37 AM   #5
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,984
Default

Quote:
Originally Posted by axel_ef View Post
There's one problem in Linux. It creates the directory Assembled_Theme_Resources as subfolder of a folder named initial.

/home/axel/.config/REAPER/ColorThemes/initial/Assembled_Theme_Resources

and shows an error:

Code:
theme_assembler.lua:396: cannot open file '/home/axel/.config/REAPER/ColorThemes/Assembled_Theme_Resources/rtconfig.txt' (No such file or directory)
I moved the folder to /home/axel/.config/REAPER/ColorThemes
Could you please try this?
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 05-29-2022, 09:54 AM   #6
Reapology
Banned
 
Join Date: Apr 2022
Posts: 635
Default

Very groovy idea groovyidea.gif
How far can this go?
Reapology is offline   Reply With Quote
Old 05-29-2022, 12:29 PM   #7
axel_ef
Human being with feelings
 
axel_ef's Avatar
 
Join Date: Jan 2007
Location: Erfurt
Posts: 790
Default

Quote:
Originally Posted by White Tie View Post
Could you please try this?
Thanks, that works.
axel_ef is offline   Reply With Quote
Old 05-29-2022, 04:43 AM   #8
Never
Human being with feelings
 
Never's Avatar
 
Join Date: Jul 2016
Location: Ohio, USA
Posts: 633
Default

AbFab!! Smashing!! The Moon landing of modern theming!!

Update: Error.

Under Win8x64: It does not create the assembled
theme resources folder at all.
Tried a few things like running Reaper admin rights
etc. but no go. I was going to create the folder myself but I do not know what structure is or what it is supposed to put there. Did everything
correctly triple checked. I will see about Win1022h2 I was just trying it out on my net pc first.

I thought maybe it had something to do with the mix of forward slashes and backslashes in the target path under an older ver of windows because it reads..(in the error msg):
'c:\users\xxx\appdata\roaming/reaper/colorthemes/assembled_resources....' not found, path does not exist.
but I went into terminal, and typed 'cd' and then the path all the way to color themes from root with an odd mix of forward and backslashes, which I have never done even since DOS 3.0 and lo and behold it found the dir no problem so not that, I learned something new.

Last edited by Never; 05-29-2022 at 06:49 AM.
Never is offline   Reply With Quote
Old 05-29-2022, 05:02 AM   #9
onewayout
Human being with feelings
 
Join Date: Feb 2008
Location: So Florida
Posts: 1,395
Default

Quote:
Originally Posted by White Tie View Post
With my Default V6 Modders' Supplies you've been able to choose from a selection of different elements to make your own mod theme based on the Default 6. Next step onward from that has been to radically increase the range of options and make it straightforward for ordinary users to choose and apply them. So, here is the initial offering of:

Theme Assembler



It is a script I have written that shows how the various options look, and automates the copying of the files into its own theme called 'Assembled_Theme' and updates it, in real time. It can also do some more complex stuff than that, like rewrite values in the rtconfig file (it will do more of that in future) but the key thing is that you don't need to understand what any of that means ...just point and click:



The script itself is very much a work in progress, but the theme it outputs is a fully functional Reaper theme based on the Default 6 theme, with complete 100%, 150% and 200% HiDPI support throughout and the usual theme adjuster.

Instructions

- Download THIS.

- Choose Options > Show REAPER resource path in explorer/finder. Extract the zip into the 'scripts' folder there.

- Choose Actions > Show action list. In the bottom right choose New action > Load ReaScript. Choose theme_assembler.lua and click Open.

- In the actions list you'll now see Script: theme_assembler.lua. Choose it and click Run.

- First time you run the script, it will ask "Assembled theme not found. Create theme?" Click OK

- Click an element to see what choices there are, click a choice and the script will copy the files over and refresh the theme.

And that's it. Everything it does is just a change to the completely normal 'assembled_theme' that you will find in your color themes folder if you want to have a look, and you can rename that theme and mess with it further if you know how themes work.

If you come up with a combination you like, please do share a screenshot, it'll be fun to see what's working and what direction I should take more elements in!



--------------



Current state (theme_assembler_0529)
  • The script should not misbehave at all, but in use it may appear pretty janky in places at this point, and its appearance is entirely placeholder to get the functionality working. I'm still new to this coding thing.
  • I've only done some of the elements. I'm never going to do all the elements.
  • Something weird going on with some of the shadows.
  • Limited range of choices, particularly for some elements, at this point. I'll just keep adding stuff as and when I feel the urge.
YES! (-:
__________________
Win 10 I9 20 core 48g Ram always on the latest update
onewayout is offline   Reply With Quote
Old 05-29-2022, 05:13 AM   #10
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Really awesome work WT!
Sexan is offline   Reply With Quote
Old 05-29-2022, 05:44 AM   #11
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 885
Default

Great, will try it out for sure!
– I wonder if media item images can be applied as well, or did you actually show this in the first gif?
PhelixK is offline   Reply With Quote
Old 05-29-2022, 05:47 AM   #12
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 13,334
Default

Awesome!
vitalker is offline   Reply With Quote
Old 05-29-2022, 08:12 AM   #13
pcp
Human being with feelings
 
pcp's Avatar
 
Join Date: Oct 2021
Location: Singapore
Posts: 182
Default

Really phenomenal, and I love where it's going.

A beautiful and functional graphical palette along with a script that abstracts away some of the complexity of the plumbing.

Last edited by pcp; 06-05-2022 at 02:08 AM.
pcp is offline   Reply With Quote
Old 05-29-2022, 07:41 AM   #14
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,984
Default

Quote:
Originally Posted by axel_ef View Post
There's one problem in Linux. It creates the directory Assembled_Theme_Resources as subfolder of a folder named initial.
Confirmed, sorry about that.

Quote:
Originally Posted by Never View Post
Under Win8x64:
Oh no, I haven't tested it on any windows except 10, I'll look into it.

Quote:
Originally Posted by PhelixK View Post
– I wonder if media item images can be applied as well, or did you actually show this in the first gif?
Yeah it'll copy anything in theory. I haven't done the item bgs at this point.
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 05-29-2022, 08:12 AM   #15
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,523
Default



Thank you White Tie! What an amazing tool! Already tried this with custom theme items!
Pink Wool is online now   Reply With Quote
Old 05-29-2022, 07:29 AM   #16
Sarasota_FOH
Human being with feelings
 
Sarasota_FOH's Avatar
 
Join Date: Mar 2020
Posts: 66
Default

Very very very cool -- Much appreciated!

- Cheers
Sarasota_FOH is offline   Reply With Quote
Old 05-29-2022, 07:31 AM   #17
nappies
Human being with feelings
 
nappies's Avatar
 
Join Date: Dec 2017
Posts: 302
Default

Wow, what a handy tool!
nappies is offline   Reply With Quote
Old 05-30-2022, 11:30 AM   #18
snrmark
Human being with feelings
 
Join Date: Apr 2020
Location: Ghana
Posts: 13
Default

wow this is amazing
snrmark is offline   Reply With Quote
Old 05-30-2022, 11:53 AM   #19
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

WT since you don't look at PM as you said, would you be interested in this code ?

Its live updating rtconfig.txt in reatheme file (v6)

Last edited by Sexan; 05-30-2022 at 12:33 PM.
Sexan is offline   Reply With Quote
Old 05-30-2022, 12:15 PM   #20
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Brilliant!
Vagelis is online now   Reply With Quote
Old 05-30-2022, 12:40 PM   #21
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,984
Default

Quote:
Originally Posted by Sexan View Post
WT since you don't look at PM as you said, would you be interested in this code ?
Yes please!
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 05-31-2022, 02:10 AM   #22
Reno.thestraws
Human being with feelings
 
Reno.thestraws's Avatar
 
Join Date: Nov 2009
Location: Belgium
Posts: 10,474
Default

Quote:
Originally Posted by Sexan View Post
WT since you don't look at PM as you said, would you be interested in this code ?

Its live updating rtconfig.txt in reatheme file (v6)
This... the world need this thing
__________________
http://www.residenceemilia.com
Reno.thestraws is offline   Reply With Quote
Old 05-30-2022, 12:54 PM   #23
fistrock
Human being with feelings
 
Join Date: Jul 2021
Posts: 4
Default

This is great! Small issue: I seem to be missing the resources for the mcp mute button.
fistrock is offline   Reply With Quote
Old 05-30-2022, 01:07 PM   #24
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Quote:
Originally Posted by White Tie View Post
Theme Assembler

Woah. Large, bold and italic fully justified.
IXix is offline   Reply With Quote
Old 05-30-2022, 01:37 PM   #25
Fouadsmy
Human being with feelings
 
Join Date: Nov 2020
Posts: 3
Default error

I have an error like this screenshot

please help me
Attached Images
File Type: png reaper_uIJwNk1J2p.png (28.6 KB, 265 views)

Last edited by Fouadsmy; 05-30-2022 at 01:39 PM. Reason: unattached picture
Fouadsmy is offline   Reply With Quote
Old 05-30-2022, 01:39 PM   #26
SmajjL
Human being with feelings
 
Join Date: Nov 2013
Posts: 2,818
Default

Quote:
Originally Posted by Fouadsmy View Post
I have an error like this
please help me
Fear not! i know CPR! stand back people!

PS, you might have forgotten an image or more text

Edit (solved)
SmajjL is offline   Reply With Quote
Old 05-30-2022, 01:53 PM   #27
MathieuC
Human being with feelings
 
Join Date: Apr 2021
Location: Brest, France
Posts: 52
Default Path issue

Hello guys,
Seems pretty awesome but doesn't seem to work with portable reaper install : https://imgur.com/a/DeLngaf
Seems to be the same issue as Fouadsmy
I'm on windows 10 1809, Repaer 6.58 and I've tried 0.530b and 0.529b... any ideas ?

Ok so after some researches and tweaks, it seems the problem comes from path parsing.
May I ask you to try some improvements dealing with something like that :

Code:
-----------------------------------------
--- || PLAYING WITH PATH AND PARSE || ---
-----------------------------------------

--[[
Documentation about debug.getinfo ([thread,] f [, what])

	@tparam int threadcall stack of the given thread: level 0 is the current function (getinfo itself); level 1 is the function that called getinfo
	@tparam char what
	Each character in the string what selects some fields of the structure ar to be filled or a value to be pushed on the stack:
    'n': fills in the field name and namewhat;
    'S': fills in the fields source, short_src, linedefined, lastlinedefined, and what;
    'l': fills in the field currentline;
    't': fills in the field istailcall;
    'u': fills in the fields nups, nparams, and isvararg;
    'f': pushes onto the stack the function that is running at the given level;
    'L': pushes onto the stack a table whose indices are the numbers of the lines that are valid on the function. (A valid line is a line with some associated code, that is, a line where you can put a break point. Non-valid lines include empty lines and comments.) 
	
	source : http://www.lua.org/manual/5.4/manual.html#pdf-debug.getinfo
]]--

--[[
About require 

	Each component in the path is a file name containing optional interrogation marks. For each component, require replaces each `?´ by the virtual file name and checks whether there is a file with that name; if not, it goes to the next component. The components in a path are separated by semicolons (a character seldom used for file names in most operating systems). 

	For instance, if the path is `` ?;?.lua;c:\windows\?;/usr/local/lua/?/?.lua `` then the call require"lili" will try to open the following files:
	```
    lili
    lili.lua
    c:\windows\lili
    /usr/local/lua/lili/lili.lua
	```
	source : https://www.lua.org/pil/8.1.html
]]--

--[[
Regular expression in LUA, patterns.

- http://wxlua.free.fr/Tutoriel_Lua/Tuto/Strings/strings6.php
- https://learntutorials.net/fr/lua/topic/5829/correspondance-de-motif

]]--


	local sep = package.config:sub(1, 1) -- separators depend on operating system, windows = \, linux and osX = /
	local script = debug.getinfo(1, 'S').source:sub(2) --absolute path + filename of current running script
	local pattern = "(.*" .. sep .. ")" -- every char before sep
	local basedir = script:match(pattern) -- rootpath of current running script
	local filename_without_ext = script:match("(.+)%.[^%.]+$")
	package.path =string.format(basedir.."?.lua")
And if I may add another suggestion, perhaps you should thing about avoiding hard coded path into the code.
Defining a constant at script beginning should avoid you terrible headache !
For example :
Code:
SCRIPT_DEFAULT_FOLDER = theme_assembler
INSTALLED_SCRIPT_FOLDER = Assembled_Theme_Resources
or something like that....
__________________
Various scripts can be found here : https://github.com/MathieuCGit -- Donation is always welcome : https://paypal.me/MathieuCONAN -- or buy me a coffee : https://www.buymeacoffee.com/mathieucgit

Last edited by MathieuC; 05-30-2022 at 02:47 PM.
MathieuC is offline   Reply With Quote
Old 05-31-2022, 02:55 AM   #28
Lau
Human being with feelings
 
Join Date: May 2011
Location: Colombes
Posts: 749
Default

that's great! Thanks a lot White Tie!
Lau is online now   Reply With Quote
Old 06-01-2022, 05:12 AM   #29
witchapestudio
Human being with feelings
 
witchapestudio's Avatar
 
Join Date: Aug 2019
Location: Seattle
Posts: 24
Default WT Theme Assembler Script

Thank you so much! You people are so good to us.
__________________
Thanks a bunch,
~TD
Reaper - Studio One - UAD LUNA, I displace and air and water... For now.
witchapestudio is offline   Reply With Quote
Old 06-01-2022, 09:12 AM   #30
alxgvr
Human being with feelings
 
Join Date: Nov 2018
Posts: 57
Default

This should be included in stock Reaper
alxgvr is offline   Reply With Quote
Old 07-28-2022, 10:20 AM   #31
Gaetano
Human being with feelings
 
Join Date: Sep 2021
Posts: 79
Default

Quote:
Originally Posted by alxgvr View Post
This should be included in stock Reaper
I agree 100%. I hope in the near future this would be part of in stock Reaper!
__________________
i7-6700 CPU 3.40 GHz, 16GB Ram, Windows 10 Pro 20H2
Gaetano is offline   Reply With Quote
Old 06-01-2022, 09:34 AM   #32
Brookwood
Human being with feelings
 
Brookwood's Avatar
 
Join Date: May 2014
Location: Brooklyn
Posts: 52
Default Good Lord

Amazing.
I'm comforted by the fact that you use your powers for good.
Thank you!!!
Brookwood is offline   Reply With Quote
Old 06-02-2022, 01:42 PM   #33
Nicolasin
Human being with feelings
 
Join Date: Apr 2022
Posts: 2
Default Amazing!!! <#

I'm pretty new to this DAW thing, I'm pretty janky ;D but eh you've done a great job Bro!!! Nice one, have a great weekend!!!

NB.

I tried my hand at coding and though I enjoyed it, it's too much to keep up with being a bit older, I got my head around it reasonably and I know it can be tricky so eh thanks for your effort, much appreciated! <3
Nicolasin is offline   Reply With Quote
Old 06-06-2022, 09:59 PM   #34
rotors
Human being with feelings
 
Join Date: Oct 2021
Posts: 7
Default

Absolutely fantastic theme, this is what reaper needs as the default.

I am on windows 10 and have found just a couple of issues.

first one, when in the mix window, the faders do not appear.
I am only getting a fader appearing on the master track, on all other tracks the fader does not show/display at all.
I have tried to toggle between the different fader types/options, but still nothing appears.

Second one, in the mix window the track names do not display correctly.
If you double click on the track name, you can see that the track name is correct, however all of the track names do not show the full name correctly, only part of the name.

Other than that everything seems to be working great.

Again, thank you for such an awesome theme.
rotors is offline   Reply With Quote
Old 06-06-2022, 10:26 PM   #35
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,523
Default

Here's what I came up with.

Had the default been like this, I most likely wouldn't have turned to other themes!

Mind you, I did change the volthumbs to suit a more flat look!




Again, thanks WT for this amazing script!
Pink Wool is online now   Reply With Quote
Old 06-07-2022, 05:21 PM   #36
Ben Zero
Human being with feelings
 
Join Date: Jan 2006
Location: London, England
Posts: 706
Default

Quote:
Originally Posted by Pink Wool View Post
Here's what I came up with.

Had the default been like this, I most likely wouldn't have turned to other themes!

Mind you, I did change the volthumbs to suit a more flat look!




Again, thanks WT for this amazing script!
This looks gorgeous; a wonderful and modern flat take on WT's default theme. Great job! Any chance you could please share this theme?

Likewise, many thanks WT.
__________________
Pro REAPER user since 2006.
Ben Zero is offline   Reply With Quote
Old 06-07-2022, 10:21 PM   #37
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,523
Default

Quote:
Originally Posted by Ben Zero View Post
This looks gorgeous; a wonderful and modern flat take on WT's default theme. Great job! Any chance you could please share this theme?
I'd love to once it's finished!

@White Tie ;

There seems to be a problem with the FXlist not showing up if the track tinting (I guess that's the parameter) is set to 0. Mind you, I'm not using the latest release. Just wondering if it's been fixed (or if it's at least in your radar)?

Edit: Never mind! I see it's fixed in later releases! Thanks!

Last edited by Pink Wool; 06-07-2022 at 10:30 PM.
Pink Wool is online now   Reply With Quote
Old 06-08-2022, 02:32 AM   #38
Jerok
Human being with feelings
 
Join Date: Jul 2014
Location: Sweden
Posts: 155
Default

Is there a way to chargé reaper fint with this?
Jerok is offline   Reply With Quote
Old 06-07-2022, 08:03 AM   #39
nightscope
Human being with feelings
 
nightscope's Avatar
 
Join Date: Sep 2007
Posts: 1,145
Default

Quote:
Originally Posted by rotors View Post
first one, when in the mix window, the faders do not appear.
I am only getting a fader appearing on the master track, on all other tracks the fader does not show/display at all.
I have tried to toggle between the different fader types/options, but still nothing appears.

Second one, in the mix window the track names do not display correctly.
If you double click on the track name, you can see that the track name is correct, however all of the track names do not show the full name correctly, only part of the name.
Yeah. I have both these issues. No faders except on the master. Plus track names just show a fragment of what should be there. If you double click as if to change the track name the proper text is still there. Just not showing when it should.

ns
nightscope is offline   Reply With Quote
Old 06-07-2022, 08:17 AM   #40
nightscope
Human being with feelings
 
nightscope's Avatar
 
Join Date: Sep 2007
Posts: 1,145
Default

Meanwhile, back at ranch....

Switched from 607 to 607b and...

We have faders....

We have track names...

We do not have a Theme Team badge...

....yet.

The Tie has put it in the back of the net. 180!!

ns
nightscope 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 11:03 PM.


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