|
|
|
04-13-2021, 10:07 PM
|
#1
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Rodilab_Color palette
rodilab_Color palette
Version 2.0
Available in ReaPack
Largely inspired by the great "Airon_Colour Swatch" script (thanks Airon), this script offers a variation of the same idea.
Set custom colors in selected Tracks, Items, Takes, Markers, Take Markers and Regions.
Or insert a new element of the desired color directly.
Powered by the ReaImGui extension (thanks cfillion), this script offers a complete user interface with Dock mode, Drag and Drop, Color Picker, highlight matching colors, set color by Tracks Name, set color to children tracks, set random colors, and many user settings... - Requirement :
- ReaImGui: ReaScript binding for Dear ImGui (v0.5 or later)
- JS API
- SWS Extension
This GIF is a demo of v1.5. The one of v2.0 soon - Click on any color to set in selected Tracks/Items/Takes/Markers/Take Markers/Regions
- Target button automatically switch according to the last valid context
- Click on target button to fast switch inside each category
- Tracks -> Tracks by Name
- Items -> Takes -> Take Markers
- Markers -> Regions
- Right-click on Target button manually choose to any target
- Click on Action button to start the displayed action
- Right-click on Action button to choose another action (last action is stored for next open) :
- Default : Restore default color
- Random All : Set a random color to all selected target
- Random Each : Set a random color to each selected target
- In Order : Set to ordered palette colors
- Right-click on "Settings" button to dock/undock (there is also a checkbox in the settings)
- Drag any palette color and drop it in user color
- Drag and drop any user color to move it (or drop away to remove)
- Right-click on user color to open popup menu
- Edit/Add user color with color picker popup
- Get first selected target color in user color
- Paste clipboard (HEX color value)
- Remove user color
- Clear all user colors
- Customize all mouse modifiers in Settings/Shortcuts menu
- [Ctrl]/[Cmd] Insert new target with clicked color
- [Ctrl+Alt]/[Cmd+Opt] Insert new named target with clicked color
- [Shift+Ctrl]/[Opt] Check/Uncheck color
- [Alt]/[Ctrl] Set color to children tracks too / to all takes (non active too)
- Keyboard shortcuts (see Settings/Shortcuts menu)
- Arrows : Navigation - Go to next/previous element, depends on target
- 1-9 numbers : Set user color by ID (works with modifiers also)
- 0 : Set default color (works with modifiers also)
- Enter : Run action button (works with modifiers also)
- R : Run Random All (works with modifiers also)
- E : Run Random Each (works with modifiers also)
- I : Run In Order (works with modifiers also)
- Backspace / Delete : Remove user color under mouse cursor
- [Ctrl+C] / [Cmd+C] : Copy hex color under mouse cursor in clipboard
- [Ctrl+V] / [Cmd+V] : Paste hex color from clipboard under mouse cursor
- [Ctrl+S] / [Cmd+S] : Save as
- [Ctrl+O] / [Cmd+O] : Load
- Spacebar : Check/Uncheck color under mouse cursor, only on "Check list" mode for Random / In Order
Random All / Random Each / In Order options : - Random Each generates a random order of colors that it repeats in a loop (which avoids repetition).
- If the Set to Children tracks option is enabled, then Random Each and In Order count the parent track and its children as a single track, so as not to skip colors.
- Choose the source list in Settings :
- Palette colors : All colors in auto generated palette
- User colors : All user colors
- Check list : Check/Uncheck each color. If no color are cheked, then all colors are taked
- Under cursor with the spacebar
- Clicking with the corresponding mouse modifier
- Settings
- Last user colors list is always saved at closing. Use "Save as" and "Load" button to save and load multiple user colors lists
- Set always color to children tracks option
- Auto set 1st user color to default tracks
- Choose which palette will be used for Random and In Order actions
- Customize mouse modifiers (like in Reaper)
- Colors
- Changes the color gradient settings of the palette in real time
- Size
- Change the number of columns and rows in the color table
- "Palette Lines" or "User Lines" could be zero to disable
- Vertical mode adapted to the side dock
- Apply button restart main window to set new values
Thanks to PhelixK for this beautiful icon
Some examples :
Pro Tools like
Many colors
User colors only
Thanks to Julian Sader (for JS API) and cfillion (for ImGui API and SWS)
Thanks to Thonex, Sumalc, Otto Juhana, Lopez, Tobbe and Additive Audio for their generous donation
Last edited by Rodilab; 06-28-2021 at 11:22 PM.
Reason: Update v1.4
|
|
|
04-14-2021, 01:39 AM
|
#2
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Looks very cool ! Nice use of ReaImGui ! Well done !
|
|
|
04-14-2021, 05:56 AM
|
#3
|
Human being with feelings
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 957
|
Good job!
|
|
|
04-14-2021, 06:28 AM
|
#4
|
Human being with feelings
Join Date: Feb 2017
Location: Zhytomyr,Ukraine
Posts: 449
|
Well done. Thank you. I use it.
|
|
|
04-14-2021, 07:35 AM
|
#5
|
Human being with feelings
Join Date: Jun 2020
Location: Florida, US
Posts: 41
|
BUG: Get Color From Track
Looking great so far! Just chiming in to report a little bug with the track color grabber. Doesn't seem to get the color appropriately for me. Reaper v6.27, Win10.
|
|
|
04-14-2021, 07:42 AM
|
#6
|
Human being with feelings
Join Date: Jun 2020
Location: Florida, US
Posts: 41
|
BUG: Save user settings
I also get an ImGui assert when trying to save user settings. See below:
Quote:
ImGui assertion failed: (g.CurrentWindowStack.Size == 1) && "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"
|
Looks like everything else in the ReaScript error window references an invalid ImGui_Context.
Quote:
... expected valid ImGui_Context*, got 0000000030238090
|
|
|
|
04-15-2021, 02:26 AM
|
#7
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
What an awesome tool, thanks Rodilab.
I get the same errors as acendan.
|
|
|
04-15-2021, 02:28 AM
|
#8
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
v1.1 update
Thanks
New version (v1.1) available.
Updates : - Set color to children tracks option in settings menu (need SWS extension)
- Drag and drop from the palette inserts new color (does not replace)
- Drag and drop from user colors moves the color and shifts the others (does not swap it)
- Improved spacing
Quote:
Looking great so far! Just chiming in to report a little bug with the track color grabber. Doesn't seem to get the color appropriately for me. Reaper v6.27, Win10.
|
Thanks for reporting. I use Mac, I don't have windows but I think I know what the problem is. I'll fix it in v1.2 (see attachment to test the pre-release)
Quote:
I also get an ImGui assert when trying to save user settings.
|
EDIT :
This one I'm not sure. It's a Windows problem, works in Mac.
On Windows, opening a dialog window at the same time as an ImGui context creates a bug.
For the moment, until I find something better, I close the ImGui window before opening the dialog, and then reopen it (in v1.2)
If anyone has an idea.
Thanks
Last edited by Rodilab; 04-15-2021 at 08:40 AM.
|
|
|
04-15-2021, 02:54 AM
|
#9
|
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,797
|
Amazing thank you very much, i wish if we could dock it too as theme adjuster.
|
|
|
04-15-2021, 05:23 AM
|
#10
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
More concize way to get os separator:
Code:
os_sep = package.config:sub(1,1)
(micro optimization :P)
|
|
|
04-15-2021, 05:25 AM
|
#11
|
Human being with feelings
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
|
WOOOOOOOW.
|
|
|
04-15-2021, 09:58 PM
|
#12
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
v1.2 Update- "Get selected track color" bug fixed in Windows
- Save/Load bug fixed in Windows (for Windows users, save or load reset de ImGui context window)
- JS_API, ImGui and SWS verification
- Improvement of "Compare with selected track colors" feature.
Let me know if everything is working well now
Quote:
More concize way to get os separator:
Code:
os_sep = package.config:sub(1,1)
(micro optimization :P)
|
Thanks X-Raym, changes made in the v1.2
Quote:
Amazing thank you very much, i wish if we could dock it too as theme adjuster.
|
Soon
Checks futur updates.
|
|
|
04-16-2021, 03:12 AM
|
#13
|
Human being with feelings
Join Date: Mar 2017
Location: France
Posts: 627
|
Nice one ! Gonna test it!
I encoutered a crash when I RMB dragged a color to lowest bar. ( I know we're not supposed to do that...)
|
|
|
04-16-2021, 03:05 PM
|
#14
|
Human being with feelings
Join Date: Mar 2019
Posts: 876
|
v1.2
Thanks a lot for this, really nice features!
Including child tracks is also convenient. I wonder, maybe this option could instead work by using a modifier, e.g. [Ctrl]-click, just an idea.
FWIW I have same crash here as reported by Regisfofo ^.
* Here on Mojave, new user files appears to work without script error.
|
|
|
04-17-2021, 01:47 AM
|
#15
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by PhelixK
Thanks a lot for this, really nice features!
Including child tracks is also convenient. I wonder, maybe this option could instead work by using a modifier, e.g. [Ctrl]-click, just an idea.
FWIW I have same crash here as reported by Regisfofo ^.
* Here on Mojave, new user files appears to work without script error.
|
Thanks
Children tracks option is available since v1.1, and bug are fixed since v1.2.
You can update script with ReaPack. Let me know if you still have the bug.
|
|
|
04-17-2021, 02:46 AM
|
#16
|
Human being with feelings
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
|
Very nice!
Thank you, Rodilab!
|
|
|
04-17-2021, 08:11 AM
|
#17
|
Human being with feelings
Join Date: Mar 2019
Posts: 876
|
Quote:
Originally Posted by Rodilab
Thanks
Children tracks option is available since v1.1, and bug are fixed since v1.2.
You can update script with ReaPack. Let me know if you still have the bug.
|
Hi, I was reporting from running v1.2, maybe it wasn't clear
Dragging a swatch to the user palette while holding down the right mouse button, the script will crash. Not a huge problem (for me), just something to be aware of. Here's the error msg:
Code:
...cripts/ReaTeam Scripts/Various/rodilab_Color palette.lua:647: table index is nil
and console output:
Code:
ImGui assertion failed: (g.CurrentWindowStack.Size == 1) && "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"
- I really like the existing option to include coloring of child tracks. What I'm trying to suggest, is to remove the setting from preferences and always have the option available to include child tracks by holding down a modifier key when clicking the swatch. Without modifier, coloring only affect the folder track itself. Not sure if this is possible, or something you already considered. /rgds.
|
|
|
04-17-2021, 10:37 AM
|
#18
|
Human being with feelings
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 360
|
Really Nice! Thank you.
One thing In (Name?)
If Ie. "Kit Buss" is entered, All folders with "Buss" and children are also modified.
If "Kit" alone is entered that buss folder and children only are modified.
Script works great except for that which is not really an issue to me, not sure if its an intended response.
Thanks for a great script.
W
|
|
|
04-18-2021, 12:04 AM
|
#19
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by PhelixK
Dragging a swatch to the user palette while holding down the right mouse button, the script will crash.
|
Bug will be fixed in the next version v1.3 (soon)
Quote:
Originally Posted by PhelixK
- I really like the existing option to include coloring of child tracks. What I'm trying to suggest, is to remove the setting from preferences and always have the option available to include child tracks by holding down a modifier key when clicking the swatch. Without modifier, coloring only affect the folder track itself. Not sure if this is possible, or something you already considered. /rgds.
|
I understand, personally I leave this option enabled.
The problem is that Ctrl-click is already used for "Past clipboard" in Windows OS.
So I will add this "Ctrl-click set color in children tracks" feature in v1.3 (soon), but with Ctrl+Alt modifier in Windows.
Quote:
Originally Posted by WarrenG
Really Nice! Thank you.
One thing In (Name?)
If Ie. "Kit Buss" is entered, All folders with "Buss" and children are also modified.
If "Kit" alone is entered that buss folder and children only are modified.
Script works great except for that which is not really an issue to me, not sure if its an intended response.
Thanks for a great script.
W
|
Thanks
I'm not sure I understand the bug you describe.
If you write "Kit Buss", then all tracks whose name begins with "Kit Buss" will be colored. Children tracks too if the option is activated.
|
|
|
04-18-2021, 01:30 AM
|
#20
|
Human being with feelings
Join Date: Aug 2007
Location: Norfolk UK
Posts: 1,351
|
This looks really good and simple, well done!
In the image shown you are changing item backgrounds not the waveform.
I prefer ( read 'got used to') the tcp chosen colour for the waveform with the background being whatever I want via the theme tweaker.
Is this possible please?
__________________
Windows 10 Pro. Intel i7 3400ghz. 16GB Ram. Focusrite Scarlett 8i6. Reaper 64.
|
|
|
04-18-2021, 02:51 AM
|
#21
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by RobertP
This looks really good and simple, well done!
In the image shown you are changing item backgrounds not the waveform.
I prefer ( read 'got used to') the tcp chosen colour for the waveform with the background being whatever I want via the theme tweaker.
Is this possible please?
|
Thanks
This script edits the customcolor of the track/item/take.
The way Reaper displays the customcolor depends on the theme used. This scrip can’t change the theme settings.
Some themes display the customcolor in the waveform rather than in the item background.
|
|
|
04-18-2021, 02:55 AM
|
#22
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Update v1.3
Update 1.3 available in ReaPack
New : - Dock window. Right-click on "Settings" button to dock/undock window (check box also available in the settings menu)
- Vertical mode in Settings/Size menu
- Any modifier-click on "Item" button switch to "Track Name" mode and viceversa
- Ctrl-click set color in children tracks (Ctrl+Alt in Windows)
- Background color like Default_6.0 theme
- Save last window position
Fixed :- Bug fixed when drag and drop and right click
- Improved settings windows position
- Improved save extstate and user file at exit
- Improved settings windows position
Example Docked mode in vertical mode
|
|
|
04-18-2021, 08:48 AM
|
#23
|
Human being with feelings
Join Date: Mar 2019
Posts: 876
|
That was fast, amazing, thanks!!
At some point IF you have interest to incorporate more features, a built-in randomized color feature would be great to have on hand. Generated and repeated from a simple 10-color palette, maybe like this one:
D76C88
CC3333
890B00
990099
CC9900
996600
669966
077F4C
116897
333399
– I will be using this script now, I even made a new toolbar icon specifically for it
Anyone feel free to use the icon if you like, available here in three sizes 1x, 1,5x, 2x:
https://stash.reaper.fm/v/41813/toolbar_colorpal.zip
Last edited by PhelixK; 02-12-2023 at 04:06 AM.
|
|
|
04-18-2021, 09:29 AM
|
#24
|
Human being with feelings
Join Date: Aug 2007
Location: Norfolk UK
Posts: 1,351
|
Quote:
Originally Posted by RobertP
This looks really good and simple, well done!
In the image shown you are changing item backgrounds not the waveform.
I prefer ( read 'got used to') the tcp chosen colour for the waveform with the background being whatever I want via the theme tweaker.
Is this possible please?
|
Well, when I wrote this I hadn't tested!
Works just fine and colours the waV/midi item not the item background as I had set it up.
EDIT: should it be saved as docked with the project?
Thanks
__________________
Windows 10 Pro. Intel i7 3400ghz. 16GB Ram. Focusrite Scarlett 8i6. Reaper 64.
Last edited by RobertP; 04-18-2021 at 09:40 AM.
|
|
|
04-18-2021, 11:11 AM
|
#25
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by RobertP
EDIT: should it be saved as docked with the project?
Thanks
|
The dock location is saved by Reaper. But the script does not restart when Reaper starts.
Quote:
Originally Posted by PhelixK
That was fast, amazing, thanks!!
At some point IF you have interest to incorporate more features, a built-in randomized color feature would be great to have on hand. Generated and repeated from a simple 10-color palette, maybe like this one:
D76C88
CC3333
890B00
990099
CC9900
996600
669966
077F4C
116897
333399
– I will be using this script now, I even made a new toolbar icon specifically for it
Anyone feel free to use the icon if you like, available here in three sizes 1x, 1,5x, 2x:
https://stash.reaper.fm/v/41813/toolbar_colorpal.zip
|
Thanks for this beautiful icon
I thought about it. But a random option, to be usable by all, must propose to choose a random color among either the user colors, or the colors of the palette, or both...
It should also be possible to apply a single random color to all selected tracks/items/takes, or a different random color for each selected tracks/items/takes...
That's a lot of options, and I don't want to overload the main user interface. I don't know yet how to integrate it well.
But I will think about it
|
|
|
04-18-2021, 01:10 PM
|
#26
|
Human being with feelings
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
|
This is simply FANTASTIC!!!
So full-featured and intelligently laid out.
2 Questions:
1) What is your PayPal donation link?
2) I have written scripts to color Regions based on Item colors, but have never been able to color Regions based on a color palette. And I haven't seen any scripts in the Reapack that do this. Would you be able to add this functionality to a quasi-identical script for selected Regions or Markers within the Time Selection? I realize your can color-selected Regions using the built-in Reaper color picker, but it doesn't match the color palette I have created for your wonder color palette. I think it would be best as an additional script since the beautify and simplicity of your current script should perhaps not be polluted by Regions and Markers. Anyway... something like this?:
Anyway... you have such a great tool here... it would be great to expand it (or create alternate versions) for other coloring options beyond tracks and items.
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Last edited by Thonex; 04-18-2021 at 01:24 PM.
|
|
|
04-19-2021, 02:51 AM
|
#27
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by Thonex
This is simply FANTASTIC!!!
So full-featured and intelligently laid out.
2 Questions:
1) What is your PayPal donation link?
|
Thanks
I had not considered the possibility of donations link.
But why not... here is a link (I'll put it in my signature).
Quote:
Originally Posted by Thonex
2) I have written scripts to color Regions based on Item colors, but have never been able to color Regions based on a color palette. And I haven't seen any scripts in the Reapack that do this. Would you be able to add this functionality to a quasi-identical script for selected Regions or Markers within the Time Selection? I realize your can color-selected Regions using the built-in Reaper color picker, but it doesn't match the color palette I have created for your wonder color palette. I think it would be best as an additional script since the beautify and simplicity of your current script should perhaps not be polluted by Regions and Markers
|
Great idea
I don't really like the idea of having multiple versions of the same script. I don't like the idea of having a busy interface. I just need to find the right compromise to integrate this functionality without distorting the script.
Maybe a 3rd state of the "Item/Take" button, which would become "Item/Take/Marker".
So if the focus is on TCP it targets the tracks. If the focus is on the arrangement it targets Items, Takes or Markers (and Regions).
I'm not sure it's very useful to separate markers and regions. It could treat them as the same thing.
Here is an example. What do you think?
|
|
|
04-19-2021, 04:12 AM
|
#28
|
Human being with feelings
Join Date: Oct 2009
Location: France
Posts: 743
|
Bravo ce serait tout simplement parfait.
|
|
|
04-19-2021, 04:24 AM
|
#29
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
A dropdown for
Item - Take - Track - Marker - Regions (separated) would be nice and quick enough (you can try to have a detect focus at script start to simply autoswitch the desired mode but manual switching is good
|
|
|
04-19-2021, 04:38 AM
|
#30
|
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,797
|
Huge thanks for the dock function and other additions/fixes, great tool!
|
|
|
04-19-2021, 04:46 AM
|
#31
|
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,797
|
BTW could we have an option to collapse the color boxes and leave just the bottom lane where we can adjust the color? Mostly because when we use it horizontally as toolbar it takes more space vertically. Theme adjuster fits nicely horizontally to the size of a toolbar.
|
|
|
04-19-2021, 07:23 AM
|
#32
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by X-Raym
A dropdown for
Item - Take - Track - Marker - Regions (separated) would be nice and quick enough (you can try to have a detect focus at script start to simply autoswitch the desired mode but manual switching is good
|
Track focus is automatically detected. But Item/Take/Marker (all stuffs in arranger) have to be manually selected.
I finally opted for a button that switches between "Item" and "Take" (as before, they are the two most important options), except that now you can right click and select "Marker" and "Tracks by Name" .
I'm still hesitant to separate "Markers" and "Regions"... I feel like it's more practical together. Maybe I'm wrong...
In the same spirit, the "Default" button can be changed with a right click to "Random All" and "Random Each" (a radio button in settings allows you to choose between randomization from palette colors of user colors).
It seems clearer to me.
v1.4 available soon...
Quote:
Originally Posted by Vagelis
BTW could we have an option to collapse the color boxes and leave just the bottom lane where we can adjust the color? Mostly because when we use it horizontally as toolbar it takes more space vertically. Theme adjuster fits nicely horizontally to the size of a toolbar.
|
Actually you can set the "Palette lines" to zero in Settings/Size. If you don't use it, it will take up less space.
Last edited by Rodilab; 04-19-2021 at 07:32 AM.
|
|
|
04-19-2021, 07:38 AM
|
#33
|
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,797
|
Nice!!!
|
|
|
04-19-2021, 07:45 AM
|
#34
|
Human being with feelings
Join Date: Jan 2019
Location: Brazil
Posts: 114
|
Error vs 1.2
Hi, Rodilab
I found an error on vs 1.3 that was not on vs 1.2
rodilab_Color palette.lua:215: bad argument #4 to 'ImGui_CreateContext' (number expected, got boolean)
Reaper 6.27 dev0418
Windows10 64bits
|
|
|
04-19-2021, 07:48 AM
|
#35
|
Human being with feelings
Join Date: Oct 2020
Posts: 3
|
This is a great tool. Thanks very much!
|
|
|
04-19-2021, 08:02 AM
|
#36
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Quote:
Originally Posted by anomar
Hi, Rodilab
I found an error on vs 1.3 that was not on vs 1.2
rodilab_Color palette.lua:215: bad argument #4 to 'ImGui_CreateContext' (number expected, got boolean)
Reaper 6.27 dev0418
Windows10 64bits
|
Thanks for reporting.
Bug fixed in v1.4 (soon)
|
|
|
04-19-2021, 09:20 AM
|
#37
|
Human being with feelings
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
|
Quote:
Originally Posted by Rodilab
Thanks
I had not considered the possibility of donations link.
But why not... here is a link (I'll put it in my signature).
Great idea
I don't really like the idea of having multiple versions of the same script. I don't like the idea of having a busy interface. I just need to find the right compromise to integrate this functionality without distorting the script.
Maybe a 3rd state of the "Item/Take" button, which would become "Item/Take/Marker".
So if the focus is on TCP it targets the tracks. If the focus is on the arrangement it targets Items, Takes or Markers (and Regions).
I'm not sure it's very useful to separate markers and regions. It could treat them as the same thing.
Here is an example. What do you think?
|
I like it! However, just speaking personally, I use the Region/Marker Manager a lot so I can select non-adjacent regions. I'm not sure if there is a way to detect focus of the Region/Marker Manager, but that might be another consideration.
Doing it with Time Selection only allows adjacent regions/markers to be colored. But that's better than nothing
Thanks
Cheers,
Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
|
|
|
04-19-2021, 10:25 AM
|
#38
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Markers VS regions is just a boolean check in the enum marker functio'nso it would be very easy to have the two modes.
I definitely think separation on this is needed if you want to colorize regions which has markers within them for exemple.
About regions in RegionMarkers manager it is possible to get them frop js_reascriptAPI.
One other reaper element which has color is Take parkers.
|
|
|
04-19-2021, 11:59 PM
|
#39
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Update v1.4
Update 1.4 available in ReaPack
New : - New Marker/Region mode (right-click on Item button)
- New Random All and Random Each mode (right-click on Default button)
- Set preferred palette for random modes in Settings
Fixed :- Bug fixed "rodilab_Color palette.lua:215: bad argument #4 to 'ImGui_CreateContext' (number expected, got boolean)"
- Bug fixed on Linux for Brose Dialog
- Some code improvements
Look first post with new images.
|
|
|
04-20-2021, 12:29 AM
|
#40
|
Human being with feelings
Join Date: Jan 2021
Location: Paris
Posts: 255
|
Thanks for your ideas and suggestions, they are interesting and enrich the script. I try to listen to everyone.
Quote:
Originally Posted by X-Raym
Markers VS regions is just a boolean check in the enum marker functio'nso it would be very easy to have the two modes.
I definitely think separation on this is needed if you want to colorize regions which has markers within them for exemple.
|
I know it's easy to add to the script. I'm thinking more about the ease of use.
My thought is that with a single "Markers" button you can also color a region without coloring the markers inside. Just put the cursor (or the time selection) on the beginning of the region (no need to select the whole region).
This is one less click.
But I hear your opinions, I may change that.
I finally figured out how to get more accurate information about the last valid mouse context. With a combination of "BR_GetMouseCursorContext()" and "JS_Mouse_GetState(1)".
I will try to change the button state automatically (except for Item/Take) with the possibility to change it manually.
Quote:
Originally Posted by X-Raym
One other reaper element which has color is Take parkers.
|
You are right
This is the next addition to the script.
Quote:
Originally Posted by X-Raym
About regions in RegionMarkers manager it is possible to get them frop js_reascriptAPI.
|
I have no idea how to do that ^^
Last edited by Rodilab; 04-20-2021 at 07:48 AM.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:30 PM.
|