Old 04-13-2021, 10:07 PM   #1
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default Rodilab_Color palette

rodilab_Color palette
Version 1.8
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.3.1 or later)
    • JS API
    • SWS Extension


This GIF is a demo of v1.5. The one of v1.7 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; Yesterday at 04:14 AM. Reason: Update v1.4
Rodilab is online now   Reply With Quote
Old 04-14-2021, 01:39 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 7,458
Default

Looks very cool ! Nice use of ReaImGui ! Well done !
X-Raym is offline   Reply With Quote
Old 04-14-2021, 05:56 AM   #3
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 458
Default

Good job!
cool is online now   Reply With Quote
Old 04-14-2021, 06:28 AM   #4
SNJUK2
Human being with feelings
 
SNJUK2's Avatar
 
Join Date: Feb 2017
Location: Ukraine
Posts: 200
Default

Well done. Thank you. I use it.
__________________
Ableton Live Config
SNJUK2 is online now   Reply With Quote
Old 04-14-2021, 07:35 AM   #5
acendan
Human being with feelings
 
Join Date: Jun 2020
Location: Florida, US
Posts: 18
Default 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.
Attached Images
File Type: gif Get Custom Color Bug.gif (54.2 KB, 31 views)
acendan is offline   Reply With Quote
Old 04-14-2021, 07:42 AM   #6
acendan
Human being with feelings
 
Join Date: Jun 2020
Location: Florida, US
Posts: 18
Default 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
Attached Images
File Type: png Annotation 2021-04-14 104003.png (16.0 KB, 25 views)
acendan is offline   Reply With Quote
Old 04-15-2021, 02:26 AM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 4,246
Default

What an awesome tool, thanks Rodilab.

I get the same errors as acendan.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please consider donating to amagalma cfillion FeedTheCat HeDa Julian Sader lb0 nofish Sexan X-Raym
_Stevie_ is online now   Reply With Quote
Old 04-15-2021, 02:28 AM   #8
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default 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.
Rodilab is online now   Reply With Quote
Old 04-15-2021, 02:54 AM   #9
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 1,340
Default

Amazing thank you very much, i wish if we could dock it too as theme adjuster.
Vagelis is offline   Reply With Quote
Old 04-15-2021, 05:23 AM   #10
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 7,458
Default

More concize way to get os separator:


Code:
os_sep = package.config:sub(1,1)
(micro optimization :P)
X-Raym is offline   Reply With Quote
Old 04-15-2021, 05:25 AM   #11
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,119
Default

WOOOOOOOW.
__________________
Dax Liniere
Puzzle Factory Sound Studios, London [Website] [Instagram]
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 04-15-2021, 09:58 PM   #12
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

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.
Rodilab is online now   Reply With Quote
Old 04-16-2021, 03:12 AM   #13
Regisfofo
Human being with feelings
 
Regisfofo's Avatar
 
Join Date: Mar 2017
Location: France
Posts: 512
Default

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...)
Regisfofo is offline   Reply With Quote
Old 04-16-2021, 03:05 PM   #14
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 490
Default 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.
PhelixK is offline   Reply With Quote
Old 04-17-2021, 01:47 AM   #15
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by PhelixK View Post
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.
Rodilab is online now   Reply With Quote
Old 04-17-2021, 02:46 AM   #16
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,632
Default

Very nice!
Thank you, Rodilab!
sinkmusic is online now   Reply With Quote
Old 04-17-2021, 08:11 AM   #17
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 490
Default

Quote:
Originally Posted by Rodilab View Post
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.
PhelixK is offline   Reply With Quote
Old 04-17-2021, 10:37 AM   #18
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: Forest, VA
Posts: 140
Default

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
WarrenG is offline   Reply With Quote
Old 04-18-2021, 12:04 AM   #19
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by PhelixK View Post
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 View Post
- 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 View Post
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.
Rodilab is online now   Reply With Quote
Old 04-18-2021, 01:30 AM   #20
RobertP
Human being with feelings
 
Join Date: Aug 2007
Location: Norfolk UK
Posts: 1,074
Default

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 7 Pro. Intel i7 3400ghz. 16GB Ram. Focusrite Scarlett 8i6. Reaper 64.

suleiman: "WTF r u ppl on abt ?"
RobertP is offline   Reply With Quote
Old 04-18-2021, 02:51 AM   #21
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by RobertP View Post
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.
Rodilab is online now   Reply With Quote
Old 04-18-2021, 02:55 AM   #22
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default 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
Rodilab is online now   Reply With Quote
Old 04-18-2021, 08:48 AM   #23
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 490
Default

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



Attached Images
File Type: jpg basic-palette.jpg (11.1 KB, 612 views)
File Type: jpg screenshot_toolbar_colorpal.jpg (13.3 KB, 622 views)
PhelixK is offline   Reply With Quote
Old 04-18-2021, 09:29 AM   #24
RobertP
Human being with feelings
 
Join Date: Aug 2007
Location: Norfolk UK
Posts: 1,074
Default

Quote:
Originally Posted by RobertP View Post
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 7 Pro. Intel i7 3400ghz. 16GB Ram. Focusrite Scarlett 8i6. Reaper 64.

suleiman: "WTF r u ppl on abt ?"

Last edited by RobertP; 04-18-2021 at 09:40 AM.
RobertP is offline   Reply With Quote
Old 04-18-2021, 11:11 AM   #25
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by RobertP View Post
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 View Post
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
Rodilab is online now   Reply With Quote
Old 04-18-2021, 01:10 PM   #26
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,346
Default

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.15 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.
Thonex is offline   Reply With Quote
Old 04-19-2021, 02:51 AM   #27
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by Thonex View Post
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 View Post
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?
Rodilab is online now   Reply With Quote
Old 04-19-2021, 04:12 AM   #28
Sumalc
Human being with feelings
 
Join Date: Oct 2009
Location: France
Posts: 640
Default

Bravo ce serait tout simplement parfait.
Sumalc is offline   Reply With Quote
Old 04-19-2021, 04:24 AM   #29
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 7,458
Default

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
X-Raym is offline   Reply With Quote
Old 04-19-2021, 04:38 AM   #30
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 1,340
Default

Huge thanks for the dock function and other additions/fixes, great tool!
Vagelis is offline   Reply With Quote
Old 04-19-2021, 04:46 AM   #31
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 1,340
Default

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.
Vagelis is offline   Reply With Quote
Old 04-19-2021, 07:23 AM   #32
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by X-Raym View Post
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 View Post
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.
Rodilab is online now   Reply With Quote
Old 04-19-2021, 07:38 AM   #33
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 1,340
Default

Nice!!!
Vagelis is offline   Reply With Quote
Old 04-19-2021, 07:45 AM   #34
anomar
Human being with feelings
 
anomar's Avatar
 
Join Date: Jan 2019
Location: Brazil
Posts: 35
Default 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
anomar is offline   Reply With Quote
Old 04-19-2021, 07:48 AM   #35
Otto Juhana
Human being with feelings
 
Join Date: Oct 2020
Posts: 3
Default

This is a great tool. Thanks very much!
Otto Juhana is offline   Reply With Quote
Old 04-19-2021, 08:02 AM   #36
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

Quote:
Originally Posted by anomar View Post
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)
Rodilab is online now   Reply With Quote
Old 04-19-2021, 09:20 AM   #37
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,346
Default

Quote:
Originally Posted by Rodilab View Post
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.15 Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 04-19-2021, 10:25 AM   #38
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 7,458
Default

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.
X-Raym is offline   Reply With Quote
Old 04-19-2021, 11:59 PM   #39
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default 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.
Rodilab is online now   Reply With Quote
Old 04-20-2021, 12:29 AM   #40
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 147
Default

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 View Post
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 View Post
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 View Post
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.
Rodilab is online now   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 06:52 AM.


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