Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 02-24-2020, 03:15 PM   #201
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by amagalma View Post
Thanks! I think that could work.. when I find time I may do it for you


I just want to say ReaNoire is my go to theme adjuster now. Not the "Theme Adjuster" color palette. It doesn't have enough colors to choose form unless you start swapping them around. The idea of having a Renoire B and C ( ) would be very sexy !!

Thanks again for this amazing script!
__________________
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.
Thonex is offline   Reply With Quote
Old 04-04-2020, 02:29 AM   #202
xinky
Human being with feelings
 
Join Date: Apr 2016
Posts: 68
Default

Hi!
In my layout I have 4 dockers (3 on left, and one on right). I want to redock it to this right one, but after reaper reboot it stays on the left dock as it was before. The buttons on the ReaNoir just change docks between left ones.
look at screenshot: https://imgur.com/a/Qa2KIJK

#edit
okay found solution
maybe primitive but... works

put somewhere line:
Code:
  find_docker    = reaper.GetExtState("timer", "dock")
then read form variable lines at the right find_docker value. In my case 513.

then change one of the buttons in reanoir to your value:
Code:
        if dock == 513 then 
                DockselL_btn:set_color(0.5,0.1,0.1,1)
            else 
                DockselL_btn:set_color(0.1,0.1,0.1,1)
            end
                DockselL_btn.onClick = function ()
                    dock = 513
                    DockselL_btn:set_color(0.5,0.1,0.1,1)
                    Write_Prefs()
__________________
xinky.

Last edited by xinky; 04-04-2020 at 02:46 AM.
xinky is offline   Reply With Quote
Old 04-04-2020, 06:55 AM   #203
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by xinky View Post
Hi!
In my layout I have 4 dockers (3 on left, and one on right). I want to redock it to this right one, but after reaper reboot it stays on the left dock as it was before. The buttons on the ReaNoir just change docks between left ones.
look at screenshot: https://imgur.com/a/Qa2KIJK

#edit
okay found solution
maybe primitive but... works

put somewhere line:
Code:
  find_docker    = reaper.GetExtState("timer", "dock")
then read form variable lines at the right find_docker value. In my case 513.

then change one of the buttons in reanoir to your value:
Code:
        if dock == 513 then 
                DockselL_btn:set_color(0.5,0.1,0.1,1)
            else 
                DockselL_btn:set_color(0.1,0.1,0.1,1)
            end
                DockselL_btn.onClick = function ()
                    dock = 513
                    DockselL_btn:set_color(0.5,0.1,0.1,1)
                    Write_Prefs()

Nice that you got it working, although reaper.GetExtState("timer", "dock") has nothing to do with Reanoir.. :P .. It stores the value at ("ReaNoir", "Dock")
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-18-2020, 01:19 PM   #204
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

Hi,
Here are some custom toolbar icons i made (48pix width), with icons for some actions, extensions... and including a toolbar icon to launch Reanoir.
Enjoy !
sinkmusic is offline   Reply With Quote
Old 04-19-2020, 12:56 AM   #205
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by sinkmusic View Post
Hi,
Here are some custom toolbar icons i made (48pix width), with icons for some actions, extensions... and including a toolbar icon to launch Reanoir.
Enjoy !

They are all beautiful! Thank you very much!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-19-2020, 01:21 AM   #206
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

You're welcome
... and thank you for creating Reanoir, it is an excellent extension !
sinkmusic is offline   Reply With Quote
Old 04-25-2020, 03:33 AM   #207
80icio
Human being with feelings
 
Join Date: Mar 2016
Location: Italy
Posts: 322
Default

Just installed! works great! thanks!!
80icio is offline   Reply With Quote
Old 04-25-2020, 03:52 AM   #208
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Mille grazie
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-10-2020, 03:23 AM   #209
mrmuzzi
Human being with feelings
 
mrmuzzi's Avatar
 
Join Date: Jun 2018
Location: Vienna
Posts: 17
Default Color conversion from SWS file incongruence

Hi,
is anybody having any issues while importing SWS colors?

I have a custom colors saved file, the first color is a red one with the HEX value E4514E which is then converted to the decimal 14963022 on the text file.

When I load the above discussed SWS file I get instead a blue color with the HEX code 0x4E51E4 which seems like an anagram of the correct one!

How does the conversion work?
mrmuzzi is offline   Reply With Quote
Old 07-10-2020, 03:44 AM   #210
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by mrmuzzi View Post
Hi,
is anybody having any issues while importing SWS colors?

I have a custom colors saved file, the first color is a red one with the HEX value E4514E which is then converted to the decimal 14963022 on the text file.

When I load the above discussed SWS file I get instead a blue color with the HEX code 0x4E51E4 which seems like an anagram of the correct one!

How does the conversion work?

Works fine here...


Hmm.. Are you on macOS?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-10-2020, 03:48 AM   #211
mrmuzzi
Human being with feelings
 
mrmuzzi's Avatar
 
Join Date: Jun 2018
Location: Vienna
Posts: 17
Default

Yes I am!
mrmuzzi is offline   Reply With Quote
Old 07-10-2020, 04:01 AM   #212
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

If you save a ReaNoir palette and load it again, does it load correctly?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-10-2020, 04:06 AM   #213
mrmuzzi
Human being with feelings
 
mrmuzzi's Avatar
 
Join Date: Jun 2018
Location: Vienna
Posts: 17
Default

Yes, the ReNoir palettes load correctly but if I save a SWS from it and then load it I get the same problem!
mrmuzzi is offline   Reply With Quote
Old 07-10-2020, 04:09 AM   #214
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

So, the problem is when loading an SWS palette only..

Ok, let me have a look...
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-10-2020, 04:11 AM   #215
mrmuzzi
Human being with feelings
 
mrmuzzi's Avatar
 
Join Date: Jun 2018
Location: Vienna
Posts: 17
Default

Yes,

the issue is only with the SWS involved...

And I forgot to thank you for this beautiful script,
it would make my color management really much better and easier!
mrmuzzi is offline   Reply With Quote
Old 07-10-2020, 04:41 AM   #216
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

v2.14 available in a bit on ReaPack should fix the problem
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-10-2020, 06:21 AM   #217
mrmuzzi
Human being with feelings
 
mrmuzzi's Avatar
 
Join Date: Jun 2018
Location: Vienna
Posts: 17
Default

Quote:
Originally Posted by amagalma View Post
v2.14 available in a bit on ReaPack should fix the problem
Yes it did!

Thanks again
mrmuzzi is offline   Reply With Quote
Old 08-20-2020, 05:03 AM   #218
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

This is a beautiful script that I use as my standard coloring utility.

I found one bug, but I think it's easy to fix: when coloring a range of tracks/items/takes with a gradient, one or more of the R, G or B values sometimes go haywire when it reaches the last track, because the float values go slightly below 0:

track: e7 e7 17
track: d0 d0 2e
track: b9 b9 45
track: a2 a2 5c
track: 8b 8b 73
track: 73 73 8b
track: 5c 5c a2
track: 45 45 b9
track: 2e 2e d0
track: 17 17 e7
track: ffffffffffffffff ffffffffffffffff ff

If I round the R/G/B values instead of taking the floor, everything seems to work fine:
Code:
local value_r,value_g,value_b = math.floor(0.5+firstcolor_r+r_step*i), math.floor(0.5+firstcolor_g+g_step*i), math.floor(0.5+firstcolor_b+b_step*i)
instead of
Code:
local value_r,value_g,value_b = math.floor(firstcolor_r+r_step*i), math.floor(firstcolor_g+g_step*i), math.floor(firstcolor_b+b_step*i)
juliansader is offline   Reply With Quote
Old 08-20-2020, 05:06 PM   #219
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by juliansader View Post
This is a beautiful script that I use as my standard coloring utility.

I found one bug, but I think it's easy to fix: when coloring a range of tracks/items/takes with a gradient, one or more of the R, G or B values sometimes go haywire when it reaches the last track, because the float values go slightly below 0:

track: e7 e7 17
track: d0 d0 2e
track: b9 b9 45
track: a2 a2 5c
track: 8b 8b 73
track: 73 73 8b
track: 5c 5c a2
track: 45 45 b9
track: 2e 2e d0
track: 17 17 e7
track: ffffffffffffffff ffffffffffffffff ff

If I round the R/G/B values instead of taking the floor, everything seems to work fine:
Code:
local value_r,value_g,value_b = math.floor(0.5+firstcolor_r+r_step*i), math.floor(0.5+firstcolor_g+g_step*i), math.floor(0.5+firstcolor_b+b_step*i)
instead of
Code:
local value_r,value_g,value_b = math.floor(firstcolor_r+r_step*i), math.floor(firstcolor_g+g_step*i), math.floor(firstcolor_b+b_step*i)
First of all... great find juliansader!!! I use colors in my scripts too... this little gem may come in handy!!

Second... I agree... it is my go-to color utility in Reaper.

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.
Thonex is offline   Reply With Quote
Old 08-21-2020, 04:14 AM   #220
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by juliansader View Post
This is a beautiful script that I use as my standard coloring utility.

I found one bug, but I think it's easy to fix: when coloring a range of tracks/items/takes with a gradient, one or more of the R, G or B values sometimes go haywire when it reaches the last track, because the float values go slightly below 0:

track: e7 e7 17
track: d0 d0 2e
track: b9 b9 45
track: a2 a2 5c
track: 8b 8b 73
track: 73 73 8b
track: 5c 5c a2
track: 45 45 b9
track: 2e 2e d0
track: 17 17 e7
track: ffffffffffffffff ffffffffffffffff ff

If I round the R/G/B values instead of taking the floor, everything seems to work fine:
Code:
local value_r,value_g,value_b = math.floor(0.5+firstcolor_r+r_step*i), math.floor(0.5+firstcolor_g+g_step*i), math.floor(0.5+firstcolor_b+b_step*i)
instead of
Code:
local value_r,value_g,value_b = math.floor(firstcolor_r+r_step*i), math.floor(firstcolor_g+g_step*i), math.floor(firstcolor_b+b_step*i)
Thanks julian! I ll fix it!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 08-21-2020, 10:26 AM   #221
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

v2.15
fix: coloring a range of tracks/items/takes with a gradient (thanks to juliansader)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-16-2021, 07:50 PM   #222
YuriOl
Human being with feelings
 
Join Date: Sep 2018
Location: lugansk
Posts: 153
Default

It is my go-to color utility.
Amagalma, great job. Thank!
YuriOl is offline   Reply With Quote
Old 02-18-2021, 04:36 PM   #223
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by YuriOl View Post
It is my go-to color utility.
Amagalma, great job. Thank!
Thank you
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-07-2021, 04:29 AM   #224
Rodilab
Human being with feelings
 
Rodilab's Avatar
 
Join Date: Jan 2021
Location: Paris
Posts: 255
Default

Wow !
This script is very useful, complete and beautiful. Great job!
Let me make a suggestion for possible future updates.

Personally I like one feature of the Pro Tools color utility:
If tracks are selected, and the current colors of the tracks are in the palette, then the edge of the buttons are highlighted.
This allows you to quickly find the color you want in the palette and click on it to apply it to all selected tracks.



Just an idea
Attached Images
File Type: jpg ProTools_Color.jpg (37.2 KB, 523 views)
Rodilab is offline   Reply With Quote
Old 04-07-2021, 05:43 AM   #225
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

+1 please!!!
lexaproductions is offline   Reply With Quote
Old 04-07-2021, 06:02 AM   #226
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by Rodilab View Post
Wow !
This script is very useful, complete and beautiful. Great job!
Let me make a suggestion for possible future updates.

Personally I like one feature of the Pro Tools color utility:
If tracks are selected, and the current colors of the tracks are in the palette, then the edge of the buttons are highlighted.
This allows you to quickly find the color you want in the palette and click on it to apply it to all selected tracks.



Just an idea

Nice idea, but maybe it is more suited to the Colour Swatch tool by airon/estux, which is closer to Pro Tools's color utility.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 06-01-2021, 02:11 AM   #227
AudioBits
Human being with feelings
 
AudioBits's Avatar
 
Join Date: Jan 2020
Posts: 38
Default

thank you for this incredible tool! Is there a way to limit the gradient, so the last track doesn't become almost black or white?
AudioBits is offline   Reply With Quote
Old 06-01-2021, 05:53 AM   #228
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Just do not ctrl-click on a black/white color. It will always make a gradient starting from the color of the first selected item/track/take to the color you ctrl-clicked:
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma 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 03:55 AM.


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