 |
|
|
10-22-2019, 06:02 AM
|
#321
|
Human being with feelings
Join Date: Dec 2010
Posts: 7
|
Hi,
I have a few issues with the latest v1.6.1 script and the "list" version when they coexist on my Mac Pro (Mac OS X v10.11.6), Reaper64 v5.984
1) I get the "Airon_Colour Swatch.lua:298: bad argument #1 to 'gmatch' (string expected, got nil)" error.
2) Colour Swatch.lua - resulting colors doesn't match the palette
Cheers,
Andrei
|
|
|
10-23-2019, 03:04 AM
|
#322
|
Human being with feelings
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 119
|
Quote:
Originally Posted by _Stevie_
Is there a way to remember the position of the colour swatch window?
|
+1 would like to know if it's possible!
|
|
|
10-24-2019, 08:50 AM
|
#323
|
Human being with feelings
Join Date: Feb 2015
Posts: 571
|
This is now my default color picker now.
It would be awesome though, if the saving and recalling presets system be developed more.
|
|
|
10-28-2019, 01:21 PM
|
#324
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
I downloaded the latest version from the stash and I have added a few things:
1. Help was broken, now it works again.
2. TRACK/ITEM/AUTO were broken too, fixed.
3. Add presets to the code + number slots. Pressing 1,2,3,4,etc will load the preset in that slot. The code contains 5 presets, you can add more. Ideally this should be loaded from an external file. I just have refactored the code to use a table of presets instead of a single preset. The current preset state will be saved as before, but changing between presets will reset them to default. I think that windows can't be resized from lua, so you may need to resize the window after changing a preset.
4. The window appears now under the cursor, ideal if you run it from an icon.
I have renamed the file to Colour Swatch+.lua so you can have the original one and this.
|
|
|
10-29-2019, 09:42 AM
|
#325
|
Human being with feelings
Join Date: Mar 2007
Posts: 589
|
Thanks estux, it's nice.
But when I unselect the AUTO option, then I cannot activate it again. I have to terminate script and launch it as fresh new.
Also console window still pops up.
Last edited by akademie; 10-29-2019 at 09:43 AM.
Reason: typo
|
|
|
10-29-2019, 09:49 AM
|
#326
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Yeah, I was going to upload a version with debug off, sorry for uploading one with it enabled.
I will take a look to the AUTO problem
|
|
|
10-29-2019, 10:16 AM
|
#327
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Debug mode disabled and AUTO fixed.
|
|
|
10-29-2019, 10:31 AM
|
#328
|
Human being with feelings
Join Date: Mar 2007
Posts: 589
|
Quote:
Originally Posted by estux
Debug mode disabled and AUTO fixed.
|
Wow, thanx for really quick fix, estux :-D
This is really nice and very useful tool.
Thank you
|
|
|
10-29-2019, 11:28 AM
|
#329
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
I have improved a little bit the alignment/look of the top bar items.
There is some commented code there for adding special swatches (black, white, clear to default...), but it is going to need more work.
@akademie, thanks, yes it is really nice to have a quick way to set colors.
|
|
|
10-29-2019, 11:45 AM
|
#330
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
BTW, how do I clear(set to default) a track/item color programmatically?
|
|
|
10-29-2019, 11:48 AM
|
#331
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Small change for fixing the content height.
|
|
|
10-29-2019, 01:56 PM
|
#332
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Fixed a good amount of drawing glitches and make changing preset a less jarring experience.
|
|
|
10-29-2019, 01:57 PM
|
#333
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Forgot to add the attachment, sorry
|
|
|
10-30-2019, 02:54 PM
|
#334
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
More changes
· Reduce the initial* flash by making the window as small as it can get.
· Remember the docker state between launches. Now it really can be used in a docker.
*Question, is there a way to know the x,y mouse coordinates before doing gfx.init? Now the script creates a windows, then checks the mouse position, closes the initial windows and then it opens a new one in the right position :/.
|
|
|
10-30-2019, 02:57 PM
|
#335
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 2,886
|
reaper.GetMousePosition
|
|
|
10-31-2019, 02:34 AM
|
#336
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Quote:
Originally Posted by cfillion
reaper.GetMousePosition
|
Thank you very much! I will upload a new version with some nice improvements.
|
|
|
10-31-2019, 01:44 PM
|
#337
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
Full changelog (I think I am going to stop here):
* v1.70 (2019-10-31) (changes by estux)
+ Fix TRACK/ITEM/AUTO interaction
+ Add support for having multiple presets, you can change between them using num keys 1 to 0.
+ Improve UI
+ Add clear/reset track color
+ Remeber dock status
+ Add settings menu to make options available to the user, options are remembered from launch to launch.
+ Option for launching the script at mouse position, if disabled the script remembers the last position.
+ Option for closing the script automatically after selecting a color.
+ Fixed launching a fake initial window, no more flashes.
+ Fixed drawing glitches.
+ Fixed help/settings menu start position.
Latest additions are: a clear color button, and an improved menu exposing some of the features that you needed to edit in the code before.
Now the script has some dependencies used for the new menu mainly, I think it is worth it.
Last edited by estux; 10-31-2019 at 02:05 PM.
|
|
|
11-12-2019, 03:47 AM
|
#338
|
Human being with feelings
Join Date: Jan 2012
Posts: 550
|
Will this version colour takes as well as items?
|
|
|
11-14-2019, 03:07 AM
|
#339
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
I didn't test it with takes (I don't use them much), give it a try.
|
|
|
11-14-2019, 05:48 PM
|
#340
|
Human being with feelings
Join Date: Jan 2012
Posts: 550
|
It doesn't appear to address take colour at all.
It looks like this side of the script has been commented out.
I've tried putting these bits of code back in or replacing item code for take code but I'm rather out of my depth.
Can you suggest a straightforward edit?
The reason being I generally use sws autocolour for track colour which affects items.
Many thanks
|
|
|
11-15-2019, 09:59 AM
|
#341
|
Human being with feelings
Join Date: Sep 2018
Posts: 47
|
I don't know the api well, I suppose there is a good reason for that code to be commented. Hopefully we'll get help from someone.
|
|
|
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 04:49 AM.
|