![]() |
#1 |
Human being with feelings
Join Date: Feb 2021
Location: Right here
Posts: 2,712
|
![]()
Hi,
I am curious about how the new custom buttons/blocks are used in the default 7 theme (if they are used at all). I’m not experienced in WALTER, and the 1500+ lines of rtconfig are quite daunting to decipher ![]() @White Tie if you have spare time could you share how you leveraged this feature with the new theme? Did they help achieving something you weren’t able to do before? For curiosity’s sake only ![]() Sorry for bad English Last edited by White Tie; 09-16-2023 at 07:45 AM. |
![]() |
![]() |
![]() |
#2 |
Pixel Pusher
Join Date: Mar 2007
Location: Blighty
Posts: 5,330
|
![]()
The v7 theme is built with extensive use of the new custom elements, which have made a huge difference.
Replacing Images Lots and lots of things that were images in previous themes are now custom elements - rectangles of colour created and managed by WALTER. I did a big push in v6 to reduce the image count, because of HiDPI but also to make modding easier, and this the next level of that because I've not needed to use many (nearly all?) of the '_bg' images. New Images Things like the little 'selection dot' I have previously had to do as part of index_bg, so it swaps image on selection, and then jump through hoops to get it centred. That's now just two little images, by my choice, independently positioned and swapped by WALTER and reused across TCP and MCP. And as it happens I'm not using index bg at all, I did that as a re-colourable custom element as well. For theme making this is the end of a lot of hacks we've been doing for years, for which I almost shed a nostalgic tear. Code control So, they're just rectangles of colour created and managed by WALTER. So the theme can change things that were previously fixed, and the adjuster script can tell them how. That's why there are now sliders for everything : background colour, custom colour depth, selection strength ...and even on the Env panel, which didn't have custom colour before. Development Help You may not directly feel the benefit of this, but being able to use the custom elements as guides for planning and managing WALTER has been huge, and along with the new error checking is why I've been able to do lots of the really complicated stuff I've been doing with the theme and how it interacts with the theme adjuster. You can turn on 'visualise sections' in the dubugging box (in Global) to see that sort of thing. I also use them to make little graphs on each panel to indicate WALTER values when I'm debugging, which is new and a big help. ...and yes, also... ...yeah, custom buttons I suppose, but I want to really downplay this because it seems to be something people have really grasped onto as the answer to all their dreams. Maybe that's true, but the reality is custom elements can fire of actions, and if so use a three state image. I've experimented and had some fun, but haven't found a use for them yet and its not because I'm being a big old meanie.
__________________
The House of White Tie |
![]() |
![]() |
![]() |
#3 |
Human being with feelings
Join Date: Feb 2021
Location: Right here
Posts: 2,712
|
![]()
Thanks for your reply.
It seems like it was indeed a big thing ! Do you plan on writing a little bit about how to work with this stuff in the future? I feel that this will open a lot of new possibilities for themers (as you already said) but it’s a somewhat hidden thing, so maybe it would be beneficial to have some sort of “tutorial” which highlights some of the more complicated stuff in the default theme. Or maybe it’s easier than I think and I just can’t cope with Walter ![]() |
![]() |
![]() |
![]() |
#4 |
Human being with feelings
Join Date: Jan 2013
Posts: 1,227
|
![]()
So it is now possible to use three states buttons on custom buttons? Is it documented somewhere how it is implemented?
__________________
REALIVE: a reaper config to use REAPER live: WITH A PDF MANUAL!!! |
![]() |
![]() |
![]() |
#5 | |
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,882
|
![]() Quote:
And tutorials for the other new things with minimal code/theme examples would be awesome, as the new addition seem to be quite powerful. If one knows how to use them..
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
|
![]() |
![]() |
![]() |
#6 |
Human being with feelings
Join Date: Feb 2021
Location: Right here
Posts: 2,712
|
![]() |
![]() |
![]() |
![]() |
#7 |
Pixel Pusher
Join Date: Mar 2007
Location: Blighty
Posts: 5,330
|
![]()
I hope you don't mind, I've changed the name of the thread from 'buttons' to 'elements', since I haven't used that side of it (I did, but removed it) and its a word that inflames many flights of fancy, followed by crashing disappointment. Let's not have any disappointment about what they aren't, because what these things are is awesome.
Custom elements are still in pre-release, so their documentation is the change logs: Code:
+ WALTER: create custom elements by using "custom tcp.custom.xyz [label] [action ID] [accessibility description]" in layouts + WALTER: allow custom elements to reference theme images and be normal buttons, using: custom mcp.custom.foo "Text Desc" command_id "accessibility_string" "image_name" Code:
custom tcp.custom.myCustomElement Code:
custom tcp.custom.myCustomElement '' 0 '' 'fileNameOfPngImage' Code:
set tcp.custom.myCustomElement [0 0 20 10] set tcp.custom.myCustomElement.color [0 0 0 255 150 150 150 255] And that's all of it. There's nothing more complicated than that in the Default 7 theme, just add lots of messing with those values of the elements by WALTER and scripting.
__________________
The House of White Tie |
![]() |
![]() |
![]() |
#8 |
Human being with feelings
Join Date: Feb 2021
Location: Right here
Posts: 2,712
|
![]()
No problem for the title
![]() EDIT: that was a VERY dumb question, I figured it out ![]() Sorry to bother you with dumb questions, just a lot curious |
![]() |
![]() |
![]() |
#9 | |
Human being with feelings
Join Date: Jan 2013
Posts: 1,227
|
![]() Quote:
I just tried to setup my custom button on top of the current Repeat button but it appears to be either one or the other. Pushing it won't trigger my script. Do you have a suggestion?
__________________
REALIVE: a reaper config to use REAPER live: WITH A PDF MANUAL!!! |
|
![]() |
![]() |
![]() |
#10 |
Pixel Pusher
Join Date: Mar 2007
Location: Blighty
Posts: 5,330
|
![]()
Top thing gets the click, so no, I think you'd need to do a really annoying thing where your script also toggled Reaper's repeat state. Sounds messy.
__________________
The House of White Tie |
![]() |
![]() |
![]() |
#11 | |
Human being with feelings
Join Date: Jan 2013
Posts: 1,227
|
![]() Quote:
To me that's the biggest gain to this custom functionality. EDIT: What makes it a "Top thing"? I tried to change the order in WALTER but it seems as if REAPER's stock command always wins over my script.
__________________
REALIVE: a reaper config to use REAPER live: WITH A PDF MANUAL!!! |
|
![]() |
![]() |
![]() |
#12 |
Human being with feelings
Join Date: Jun 2019
Posts: 3,052
|
![]()
Sadly three state buttons are not currently possible with “custom element”. I hope devs will give us this option at some point so this feature can become useful as buttons too, something many people hoped for.
|
![]() |
![]() |
![]() |
#13 |
Human being with feelings
Join Date: May 2016
Location: Kyiv, Ukraine
Posts: 680
|
![]()
unfortunately, can't force REAPER to load images for custom commands from 150 and 200 folders, seems that it's broken for dpi translation layouts. any ideas?
[copypaste from pre-release thread] [edited] seems that the custom command image name does not obey the layout folder: Code:
layout "Default 200" "200" [edited x2] the workaround is to use macro in image name with "/" Code:
macro DrawTCP scale layoutfolder custom tcp.custom.command " " none " " layoutfolder/tcp_command_bg endmacro layout "TCP 200" DrawTCP 2 200 endlayout Last edited by gapalil001; 10-28-2023 at 03:09 AM. |
![]() |
![]() |
![]() |
#14 | |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,335
|
![]() Quote:
Code:
custom tcp.custom.test "" 0 "" customimagename set tcp.custom.test [0 0 270 90] front tcp.custom.test If 200/customimagename.png does not exist, then it uses the root png. Last edited by Justin; 10-29-2023 at 04:34 PM. |
|
![]() |
![]() |
![]() |
#15 | |
Human being with feelings
Join Date: May 2016
Location: Kyiv, Ukraine
Posts: 680
|
![]() Quote:
- Could my issue be caused by forgetting to change "version 6" to "version 7" on the header? - as you probably noticed, I use "" instead of '' and do not use them at all for image names. can it also break something? |
|
![]() |
![]() |
![]() |
#16 | ||
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,335
|
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#17 | |
Human being with feelings
Join Date: May 2016
Location: Kyiv, Ukraine
Posts: 680
|
![]() Quote:
here is an theme demo example custom commands lines are 545-552 Code:
custom tcp.custom.folderlabel " " 0 " " 'tcp_folder_namebg' custom tcp.custom.folderlabelsel " " 0 " " 'tcp_folder_namebg_sel' custom tcp.custom.colorbg " " 0 " " 'tcp_color_bg' custom tcp.custom.colorbgsel " " 0 " " 'tcp_color_bgsel' custom tcp.custom.greybg " " 0 " " 'tcp_grey_bg' custom tcp.custom.greybgsel " " 0 " " 'tcp_grey_bgsel' Last edited by gapalil001; 10-30-2023 at 01:13 PM. |
|
![]() |
![]() |
![]() |
#18 | |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,335
|
![]() Quote:
Last edited by Justin; 10-30-2023 at 08:11 PM. |
|
![]() |
![]() |
![]() |
#19 |
Human being with feelings
Join Date: May 2016
Location: Kyiv, Ukraine
Posts: 680
|
![]() |
![]() |
![]() |
![]() |
#20 |
Human being with feelings
Join Date: Dec 2010
Posts: 3,831
|
![]()
Yeah this was a big feature for me in V7, and it wasn't what I thought it was haha, if it turns in to custom buttons it would be nice for sure.
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science! |
![]() |
![]() |
![]() |
#21 |
Human being with feelings
Join Date: Jan 2013
Posts: 1,227
|
![]()
+1. Still praying for this.
__________________
REALIVE: a reaper config to use REAPER live: WITH A PDF MANUAL!!! |
![]() |
![]() |
![]() |
#22 |
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 4,162
|
![]()
Could someone explain please where and what I should add in rtconfig.txt to show a fixed lanes button?
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|