Old 03-18-2017, 04:08 PM   #1
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default ReaNoir: Utility to color tracks/items/takes (REAchelangelo MOD)



This script is a modification of the excellent script by Spacemen Tree***.

-------------------------------------------------------------
Kind of a manual / Overview:
- Palette of 24 colors (Color Boxes) + 1 temporary (Temporary - the big color box on top)
- Left-click a Color Box to Color Tracks, Items or Takes and set it as Temporary
- Tracks/Items are recognized automatically according to what was lastly clicked while the Takes mode is set manually by the user
- Right-click a Color Box to save the Temporary color into that box
- Load/save different user palettes (.txt files)
- Left-click Save button to Save current palette or Right-Click to Save As
- Left-click Load button to load a new palette or Right-Click to load the default palette
- Set the Temporary color to the color of the first selected track/item/take according to what was lastly clicked (Get Color button)
- Show Hex name of Temporary color
- Left-click Hex name to enter a Hex color code manually (formats: 123456, #123456, # 123456 & 0x123456)
- Right-click Hex name to paste it to the clipboard for use with SWS Auto Color/Icons
- Palette is automatically saved to last_palette_on_exit.txt as a backup. If you try to load last_palette_on_exit, then you are prompted to save it with a new name.
- Left-click Darker/Brighter buttons to make Temporary Color brighter or darker. Right-click them to make it black/white. Ctrl-click to create shaded/tinted gradient colors
- Script saves user palettes in a directory called ReaNoir in the same path as the script. Preferences are saved to ExtState
- Click LD/SV SWS button to load SWSColor files
- Right-click LD/SV SWS button to save Reanoir palette as .SWSColor file
- Click SWS Colors button to open the SWS Color Management tool
- Ability to dock the script to the left or to the right
- Right-click sliders' area to toggle between RGB and HSL mode
- Information displayed on top of ReaNoir when hovering mouse over buttons/sliders
- Ctrl-click on any color box (including the Temporary color box) to color the selected tracks/items/takes from the existing color to the ctrl-clicked color in grades
- Find in the script "MODE OF OPERATION" to set to Normal (RGB/HSL) or Compact (No Sliders) mode
- When in Compact (No Sliders) Mode, Right-click Get Color Button to set Temporary Color Box's color
- Click Random color button to apply random colors from the current palette according to the selection (no color is repeated until all 24 have been used)
- Creation of Undo points in Reaper's Undo History

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

Latest version:
* v2.04 (2017-06-20)

Changelog:
+ Ctrl-clicking on Darker/Brighter buttons creates shaded/tinted gradient colors

Download here: https://stash.reaper.fm/30262/ReaNoir.lua
OR Get it via ReaPack! (recommended!!!)

Numerous palettes provided by Gianfini as a single zip here

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

***As requested by Spacemen Tree, I copy paste this from his original thread:

Quote:
Originally Posted by Spacemen Tree

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

It was almost 6 months since I put up my first scripts here.
My Bday is coming up so I thought I'd make my scripts freeware.

Nevertheless, donations made to the non-profit shelters listed below will be greatly appreciated.

I do appreciate those that sent me donations directly via my email but grateful as I am (and I am) I would prefer if you'd donate directly to the shelters.

Thank you for your generosity and all the best.

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


União Zoófila
-------------
http://www.uniaozoofila.org/

Associação CãoViver
-------------------
http://www.associacaocaoviver.org/

Associação Gato de Rua
----------------------
http://gato-de-rua.blogspot.pt/

Associação Guadi
----------------
http://www.associacaoguadi.blogspot.pt/

PRAVI
-----
http://veracupido.wix.com/pravi-org

Missão Patas Felizes
--------------------
http://patasfelizes.blogs.sapo.pt/

Refúgio dos Burros
------------------
http://www.refugiodosburros.org/

NAAAS
-----
http://www.naaas.pt/

ABRA
----
http://www.abra.org.pt/a-abra/donativos.html


These animal shelters are always in need of donations for buying food and taking care of vet bills, among other things.
The stray animals situation in Portugal is bad to worst and since these shelters only manage to run on volunteer work, they can only do so much...

So, give a little. You can make a difference, small as your donation may be!

Click on one or more of the links above and find your preferred method for giving. Most sites I linked have Paypal, IBAN, etc. Just look for it.
Also, all of the shelters I linked are on Facebook, if you'd like to drop them a line.

Last edited by amagalma; 06-20-2017 at 09:20 AM.
amagalma is offline   Reply With Quote
Old 03-18-2017, 05:09 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,499
Default

Nice updates for a beautiful scripts -P thanks yiu and spaceman tree for that !
X-Raym is offline   Reply With Quote
Old 03-20-2017, 03:51 PM   #3
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

Thank you X-Raym..

There are still a couple of things I want to add... When I find the time
amagalma is offline   Reply With Quote
Old 03-20-2017, 04:34 PM   #4
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,057
Default

Looks cool!

FYI, tested on clean portable install and got error,
lua:981: bad argument #1 to 'open' (string expected, got nil)

Maybe you can add error trap if Preferences.txt and/or other file(s) are missing on first use?
Edgemeal is offline   Reply With Quote
Old 03-20-2017, 05:49 PM   #5
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,499
Default

Quote:
FYI, tested on clean portable install and got error,
lua:981: bad argument #1 to 'open' (string expected, got nil)

Maybe you can add error trap if Preferences.txt and/or other file(s) are missing on first use?
Confirmed, I had to put it in the same folder than the original script folder.
X-Raym is offline   Reply With Quote
Old 03-21-2017, 05:04 AM   #6
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default

Nice. As next step I would suggest error management and better palette management with a sort of palette history

EDIT: Could you implement importing .SWSColor files? (they only have 16 colors so they would fill in the first 16, but numbers are in decimal notation not hex)

thanks
g

Last edited by Gianfini; 03-21-2017 at 05:14 AM.
Gianfini is offline   Reply With Quote
Old 03-21-2017, 06:18 AM   #7
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default

Additional requests
- could you make it possible to reset the color for take/items (e.g. by right click on the big color box)?
- could you make it possible to openthe standard Windows color management tool to set a color (e.g. by double clicking or Ctrl-click any color box)?

thanks
great job so far
g
Gianfini is offline   Reply With Quote
Old 03-21-2017, 10:06 AM   #8
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

Thank you guys for trying it!

I have uploaded the new version. Check the first post in the thread. It should give you no more errors. All preferences are stored and recalled to/from the ExtState.

@Gianfini: I will make a "reset to default color" function (done!). I will look if I can import .SWSColor files too. (done!) Palette history.. I don't think I need it..So, no plans for this.. Open the standard Windows color management tool.. If I implement opening of .SWSColor files, then this is not needed as well. Plus, I am afraid that it is too difficult to implement for my knowledge

Last edited by amagalma; 03-21-2017 at 08:33 PM.
amagalma is offline   Reply With Quote
Old 03-22-2017, 01:46 AM   #9
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default

Really great job!!!!!!!

Latest request, then this will definitely substitute color management in Reaper
- Saved palettes should be retrieved not only via LOAD and browsing folders, but they should be available in a drop-down list for quick and easy retrieval (e.g. like plugin presets). So if I save 10 palettes and want to retrieve one, instead of hitting load and browsing folders I'd rather choose it from a list
- (second priority only if not difficult) ability to recall the "old" color management (see pics below) when ctrl-click on single color square, to tweak it. This would give access to HSL, basic color set, and the current loaded custom colors (to pick from in case one want to swap position of colors)



EDIT: on topic 1 above, another easier way is to make LOAD button always open in the right folder (Script/ReaNoir). Now it opens in the last open folder, so the SWS folder if I loaded an SWS theme


thanks

Last edited by Gianfini; 03-22-2017 at 05:28 AM.
Gianfini is offline   Reply With Quote
Old 03-22-2017, 02:00 AM   #10
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default Focus...

Another request: after opening the script and after each click on it, it should give back focus to Reaper not keep it.

In fact now if I choose a color, I cannot hit space to start play, because I have to select REaper window first to give it the focus...

Again this would improve this behavior: I assigned key stroke 'C' to the script. I hit once and it opens. I set it up to close the terminate the script when launching it again (instead of creating another instance) because I wanted to hit 'C' again and close it.

Unfortunately the focus is on the ReaNoir windows so if I hit C nothing happens, I have to click on Reaper main windows first.

Could you make something about it?

g
Gianfini is offline   Reply With Quote
Old 03-22-2017, 02:02 AM   #11
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default ...and position

and very last for today

- could you make ReaNoir remember the last position and open in that position instead than top - left as it does now? That would be killer!

Sorry for bothering you, hope I'm helping to get the very best color management tool for Reaper that should definitely enter each one toolbar!

g
Gianfini is offline   Reply With Quote
Old 03-22-2017, 03:59 AM   #12
Distressor
Human being with feelings
 
Distressor's Avatar
 
Join Date: Mar 2017
Location: Berlin
Posts: 83
Default

It would also be cool to have a reset switch to reset to the default color.

Awesome tool btw!
Distressor is offline   Reply With Quote
Old 03-22-2017, 05:24 AM   #13
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default

Quote:
Originally Posted by Distressor View Post
It would also be cool to have a reset switch to reset to the default color.

Awesome tool btw!
You have it: just right click the LOAD button

g
Gianfini is offline   Reply With Quote
Old 03-26-2017, 04:39 AM   #14
edwood75
Human being with feelings
 
Join Date: Jan 2011
Location: Porto, Portugal
Posts: 86
Default

Quote:
Originally Posted by amagalma View Post
Hello!

This script is a modification of the excellent script by Spacemen Tree.

As requested by Spacemen Tree, I copy paste this from his original thread:



-------------------------------------------------------------
Kind of a manual / Overview:
- Palette of 24 colors + 1 temporary (the big color box on top)
- Left-click a box to Color Tracks, Items or Takes and set it as Temporary
- Tracks/Items are recognized automatically according to what was lastly clicked while the Takes mode is set manually by the user
- Right-click a box to save Temporary color to that box
- Load/save different user palettes
- Left-click Save button to Save current palette or Right-Click to Save As
- Left-click Load button to load a new palette or Right-Click to load the default palette
- Set the Temporary color to the color of a track/item/take according to what was lastly clicked (Get Color button)
- Show Hex name of Temporary color
- Left-click Hex name to enter a Hex color code manually
- Right-click Hex name to Paste it to the clipboard for use with SWS Auto Color/Icons
- Palette is automatically saved to last_palette_on_exit.txt as a backup. If you try to load last_palette_on_exit, then you are prompted to save it with a new name.
- Left-click Darker/Brighter buttons to make Temporary Color brighter or darker. Right-click them to make it black/white
- Script saves user palettes in a directory called ReaNoir in the same path as the script. Preferences are saved to ExtState
- Click Load SWS button to load SWSColor files
- Click SWS Colors button to open the SWS Color Management tool
-------------------------------------------------------------
UPDATE:
25/3/2017 v1.45
+ when script opens, if the previous loaded file was SWSColor, it gets loaded as an "unsaved palette"
+ corrected gradient creation for SWSColor files

24/3/2017: v1.42
+ ReaNoir does not steal focus when firstly launched

24/3/2017: v1.41
+ improved docking

24/3/2017: v1.40
+ improvement for ReaNoir not stealing focus
+ ReaNoir remembers last window position
+ fixed some bugs

23/3/2017: v1.35
+ various optimizations in the code
+ swapped order of LoadSWS and SWS Colors so that LoadSWS is on the left side like the Load button
+ better error handling
+ ReaNoir does not steal focus from Reaper

22/3/2017: v1.30
+ Added button to open SWS Color Management
+ Added ability and button to import SWSColor files (16 colors & 8 gradient colors)

22/3/2017: v1.20
+ added buttons to make temporary color darker or brighter (or black/white)

21/3/2017: v1.15
+ Right-click Temporary Color (big color box) to reset color to default

21/3/2017: v1.1
+ fixed crash if not placed in same folder with original script: http://forum.cockos.com/showpost.php...85&postcount=4
(it is no more needed to co-exist with REAchelangelo.)
+ moved Preferences to ExtState
+ various bug fixes
+ changed name to ReaNoir
-------------------------------------------------------------
Download latest version here: https://stash.reaper.fm/30262/ReaNoir.lua



I hope you like it!
Bom trabalho caríssimo!
Ab
edwood75 is offline   Reply With Quote
Old 03-26-2017, 11:54 AM   #15
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

Quote:
Originally Posted by edwood75 View Post
Bom trabalho caríssimo!
Ab
Obrigado
amagalma is offline   Reply With Quote
Old 03-27-2017, 09:01 AM   #16
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

UPDATES:

* v1.63 (2017-03-27)
+ No more annoying pop-up when changing mode between RGB<->HSL

* v1.62 (2017-03-27)
+ Reanoir opens in the correct folders when loading SWSColors or user palettes (thanks Lokasenna!)

* v1.61 (2017-03-26)
+ fixed bug when trying to save a palette loaded from an SWSColor file

* v1.60 (2017-03-26)
+ added HSL sliders - right click sliders' area to toggle

Last edited by amagalma; 03-27-2017 at 09:20 AM.
amagalma is offline   Reply With Quote
Old 03-27-2017, 04:00 PM   #17
Claudiohbsantos
Human being with feelings
 
Join Date: Aug 2014
Location: New York
Posts: 132
Default

Thanks, this is awesome! Very useful stuff
Claudiohbsantos is offline   Reply With Quote
Old 03-27-2017, 04:50 PM   #18
studio1602
Human being with feelings
 
Join Date: Jul 2014
Posts: 46
Default

Great update! Having the correct folder open when switching palettes is awesome. Thanks, amagalma!
studio1602 is offline   Reply With Quote
Old 03-28-2017, 12:02 AM   #19
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default

GREAT!!! it is becoming THE color tool for Reaper. One thing would make it final unique (I know you told me it's behind your current capabilities but maybe on a future day....): the ability to save back the first 16 colors into the Windows color swatch (and possibly into as an SWS file: this should be easier)

Really great job, I substituted it to my color management toolbar button
g
Gianfini is offline   Reply With Quote
Old 06-17-2017, 11:03 AM   #20
Gianfini
Human being with feelings
 
Join Date: Jan 2015
Posts: 611
Default Addons

Small addons to this beautiful tool

First file are several palettes that I put together starting from various SWS and other sources: place them into the Reanoir directory and load them via Reanoir

Second file is a modification of original script (called version 2.02g) that adds the feature to SAVE SWS FILES (it uses the first 16 color boxes of reanoir + 17 and 24 as color gradient start and end) through right click of top left button.

Dunno how to put it in Reapack... I'll leave it to Amalgama if he has time

g
Attached Files
File Type: zip Color Palette.zip (5.0 KB, 120 views)
File Type: lua amagalma_ReaNoir track-item-take coloring utility gianf.lua (82.5 KB, 39 views)
Gianfini is offline   Reply With Quote
Old 06-18-2017, 09:54 AM   #21
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

Oh, thanks so much Gianfini for your work! I am going to check it and upload it a bit later!
amagalma is offline   Reply With Quote
Old 06-20-2017, 05:47 AM   #22
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

Reanoir updated to v2.03 with Gianfini's addition. Thank you Gianfini!
amagalma is offline   Reply With Quote
Old 06-20-2017, 08:56 AM   #23
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

* v2.04 (2017-06-20)
+ Ctrl-clicking on Darker/Brighter buttons creates shaded/tinted gradient colors
amagalma is offline   Reply With Quote
Old 06-13-2018, 06:12 AM   #24
farjedi
Human being with feelings
 
Join Date: Sep 2010
Posts: 146
Default

Thanks for this, I have loaded ReaPack and tried for the first time.

I got a problem I hit the '?' button and have no way to close the pop up. In fact Reaper is completely locked with no means of force quitting other than force quitting the entire computer. The info text goes beyond my screen so I don't know if there is a close button below.

I've been trying to look on the net for answers but everything I try results in a alarm 'you can't do that' sound.

It might be something really easy and I'm being a plank, but thought I'd let you know.
farjedi is offline   Reply With Quote
Old 12-03-2018, 06:11 AM   #25
dupont
Human being with feelings
 
dupont's Avatar
 
Join Date: Nov 2007
Location: France
Posts: 503
Default

I think there is an issue with the font size at the top of the window.
OSX El Capitan.

https://drive.google.com/open?id=1ME...lDC7uvarfb-JDK
dupont is offline   Reply With Quote
Old 12-04-2018, 05:51 PM   #26
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

Yes, there is. I am on Windows and have no Mac to test, so I don't know how to fix it... Is there some font that exists in both platforms?
amagalma is offline   Reply With Quote
Old 12-05-2018, 01:44 AM   #27
dupont
Human being with feelings
 
dupont's Avatar
 
Join Date: Nov 2007
Location: France
Posts: 503
Default

Quote:
Originally Posted by amagalma View Post
Yes, there is. I am on Windows and have no Mac to test, so I don't know how to fix it... Is there some font that exists in both platforms?
I don't know !
If it is a matter of font, why is the font at the middle and bottom of the plugin window OK on OSX ?
dupont is offline   Reply With Quote
Old 12-05-2018, 03:26 AM   #28
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,464
Default

No idea.. Maybe another dev who has experience and access to both platforms could help me?


Could you post a screenshot of how it looks on Mac so I could compare? Thanks!
amagalma is offline   Reply With Quote
Old 12-05-2018, 03:36 AM   #29
dupont
Human being with feelings
 
dupont's Avatar
 
Join Date: Nov 2007
Location: France
Posts: 503
Default

Quote:
Originally Posted by amagalma View Post
No idea.. Maybe another dev who has experience and access to both platforms could help me?


Could you post a screenshot of how it looks on Mac so I could compare? Thanks!
image on my post 12-03-2018 above, clic on the google drive link
dupont 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 08:02 PM.


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