|
|
|
08-05-2021, 12:55 PM
|
#41
|
Human being with feelings
Join Date: Sep 2019
Location: Austria
Posts: 443
|
Quote:
Originally Posted by X-Raym
Code:
* v0.6.7 (2021-08-05)
# Fix MacOS export of modified colors
Hopefully, this will work as expected and not break anything
|
Thanks X-Raym,
it seems it works on OS 10.13.6.
Last edited by OLSHALOM; 08-05-2021 at 01:19 PM.
|
|
|
08-09-2021, 06:08 PM
|
#42
|
Human being with feelings
Join Date: Jun 2020
Posts: 656
|
Still having issues with exporting here, it still changes the values the same way
|
|
|
08-10-2021, 02:45 AM
|
#43
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@tonalstates
be sure to use the last version of the script,
and to open the right exported theme files
Anyonenelse can try on mac ?
|
|
|
10-25-2021, 02:30 PM
|
#44
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,630
|
Hi there X-Raym
I can't open the "Color Tweaker" in macOS in 6.37. Is that this script?
Code:
X-Raym_Theme color tweaker.lua:192: bad argument #1 to 'match' (string expected, got nil)
|
|
|
10-25-2021, 03:23 PM
|
#45
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@MonkeyBars
The function is called at theme export or theme load,
if it happens at theme load, it seems that the theme path returned by the GetLastColorThemeFile function is nil for some reason
https://github.com/X-Raym/REAPER-Rea...eaker.lua#L200
Not sure what is wrong there. :S Someone else on MacOS have to test.
|
|
|
10-25-2021, 06:12 PM
|
#46
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,630
|
Quote:
Originally Posted by X-Raym
The function is called at theme export or theme load, if it happens at theme load
|
I was just calling it directly from the Actions window
|
|
|
10-25-2021, 11:12 PM
|
#47
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@MonkeyBars
Last time I checked on mac it was working. let see if other reports arise.
|
|
|
01-21-2022, 06:15 PM
|
#48
|
Human being with feelings
Join Date: Aug 2021
Posts: 4
|
Me too.
Quote:
Originally Posted by X-Raym
@MonkeyBars
Last time I checked on mac it was working. let see if other reports arise.
|
I also ran into this error as seen (hopefully) in the attached JPEG. First post from me so no sure if the attachment will work. I think it was running okay prior to the most recent update.
Last edited by Glen-Reaper; 01-21-2022 at 06:34 PM.
|
|
|
01-21-2022, 06:18 PM
|
#49
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Glen
No screenshot attached.
Last edited by X-Raym; 01-21-2022 at 07:35 PM.
|
|
|
01-21-2022, 06:35 PM
|
#50
|
Human being with feelings
Join Date: Aug 2021
Posts: 4
|
Quote:
Originally Posted by X-Raym
@Glen
No screenshit attached.
|
Should be there now.
|
|
|
01-21-2022, 07:32 PM
|
#51
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Glen
Create new script from action list and run this code (CTRL/CMD + S from the IDE):
Code:
reaper.ShowConsoleMsg(reaper.GetLastColorThemeFile())
What do you see in the console?
(copy paste the console log, no need to screenshot text)
|
|
|
01-21-2022, 07:35 PM
|
#52
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@MonkeyBars
Do you still have this issue as well?
|
|
|
01-21-2022, 09:31 PM
|
#53
|
Human being with feelings
Join Date: Aug 2021
Posts: 4
|
Quote:
Originally Posted by X-Raym
@Glen
Create new script from action list and run this code (CTRL/CMD + S from the IDE):
Code:
reaper.ShowConsoleMsg(reaper.GetLastColorThemeFile())
What do you see in the console?
(copy paste the console log, no need to screenshot text)
|
Looks like I'm doing something wrong I get the error message below and as per attached. I've never worked with code or scripts so way out of my depth.
Test 1.lua:1: bad argument #1 to 'ShowConsoleMsg' (string expected, got no value)
|
|
|
01-22-2022, 01:21 AM
|
#54
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Glen
you are doing right. this is precisely the source of the error. This should display theme path. But it has no value. This is in an issue on Cockos side IMHO cause I see no reason why Get Last Theme function would either return no value. Seems to be related to Mac implementation of this function.
We need more feedbacks to see if this is reproductible for all mac users to make a precise report to cockos.
But I'm sure I have run this script on Mac once... Try various things like zip/unzipped theme, defaut/non default... ?
|
|
|
01-25-2022, 10:13 PM
|
#55
|
Human being with feelings
Join Date: Aug 2021
Posts: 4
|
Quote:
Originally Posted by X-Raym
@Glen
you are doing right. this is precisely the source of the error. This should display theme path. But it has no value. This is in an issue on Cockos side IMHO cause I see no reason why Get Last Theme function would either return no value. Seems to be related to Mac implementation of this function.
We need more feedbacks to see if this is reproductible for all mac users to make a precise report to cockos.
But I'm sure I have run this script on Mac once... Try various things like zip/unzipped theme, defaut/non default... ?
|
Hey @X-Raym
No idea why but the script is running fine again. I have changed nothing that would make it apparent what the root cause might be. I am using the same theme/s and set up so not sure what's going on. Anyway thanks for getting back to me on this.
Glen
|
|
|
01-26-2022, 02:28 AM
|
#56
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Glen-Reaper
Thanks for the update !
I didnt get answers from monkey_bars yet.
So, glad it works for you now!
Remember that it will need unpacked theme to be able to export the new config, but there should be messages about that.
Best,
|
|
|
07-05-2022, 03:58 AM
|
#57
|
Human being with feelings
Join Date: Dec 2019
Posts: 193
|
I recently updated ReaImgui to 0.7 and now when I launch the theme tweaker I get the following message:
X-Raym_Theme color tweaker.lua:279: ImGui_Combo: items must be null-terminated.
Changing this:
Code:
local retval, color_descriptions_num_temp = r.ImGui_Combo(ctx, 'Labels', color_descriptions_num, "Text\31Variables\31")
to this:
Code:
local retval, color_descriptions_num_temp = r.ImGui_Combo(ctx, 'Labels', color_descriptions_num, "Text\0Variables\0")
seems to have solved it.
Probably should push an update?
Last edited by odedd; 07-05-2022 at 02:42 PM.
|
|
|
07-05-2022, 05:47 AM
|
#58
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
v0.6.8
@odedd
Thx, updated !
So you are using this script ? How successful has it been ?
|
|
|
07-05-2022, 02:41 PM
|
#59
|
Human being with feelings
Join Date: Dec 2019
Posts: 193
|
I find it very useful!
I use it every now and then to tweak a detail that's bugging me
It's way more convenient and eye pleasing than Reaper's own tweaker.
Gotta love ImGui!
|
|
|
07-08-2022, 01:38 AM
|
#60
|
Human being with feelings
Join Date: Jul 2018
Posts: 16
|
Theme color tweaker not working here...?
@X-Raym Before getting to the problem and asking for help, first - thank you so much for the scripts you wrote and shared for free, I really appreciate that!
I fail in getting the script working. On the ReaPack repository, there is still version 0.6.7. When I try 0.6.7 I get:
ReaScript Error:
X-Raym_Theme color tweaker.lua:279: ImGui_Combo: items must be null-terminated
And ReaScript console output:
ImGui assertion failed: (g.CurrentWindowStack.Size == 1) && "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"
I found version 0.6.8 on your Github page and manually installed it. I got the script executed and the initial screen opened. As soon as I click to change some color, the color changes and immediately the script terminates with:
ReaScript error:
...m Scripts\Theme\X-Raym_Theme color tweaker.lua:373: bad argument #3 to 'ImGui_PushStyleColor' (number has no integer representation)
And ReaScript console output:
ImGui assertion failed: (g.CurrentWindowStack.Size == 1) && "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"
|
|
|
07-08-2022, 02:04 AM
|
#61
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Faberman
Not sure what is wrong in your reapack sync but the 0.6.8 update is public and indexed, as you can see in this reapack index.xml sample
Code:
<version name="0.6.8" author="X-Raym" time="2022-07-05T12:42:05Z">
<changelog><![CDATA[# ReaImGUI v0.7 compatibility]]></changelog>
<source main="main">https://github.com/X-Raym/REAPER-ReaScripts/raw/f73d79476c2ebba49906d6936fab51721f5548e6/Theme/X-Raym_Theme%20color%20tweaker.lua</source>
</version>
For color error it indeed seems somethign has changed on ReaImGui side.
O just reupaded the script v0.6.9 to take that into account. Not sure why this has changed on ReaImGUI side but it broke backward compatibility. :S
|
|
|
07-08-2022, 03:49 AM
|
#62
|
Human being with feelings
Join Date: Jul 2018
Posts: 16
|
@X-Raym
I forgot to synchronize packages. It's working now (v.0.6.9). Thank you for your reply and for this great script!
|
|
|
07-08-2022, 06:31 PM
|
#63
|
Human being with feelings
Join Date: Apr 2009
Location: Nashville
Posts: 177
|
Love the interface. Thank you.
Using the current version on PC. Loading exported themes the colors are hue shifted. For example, teal becomes a mustard yellow.
|
|
|
07-08-2022, 06:46 PM
|
#64
|
Human being with feelings
Join Date: Apr 2009
Location: Nashville
Posts: 177
|
Here's a visual. Could another setting in the theme be shifting the hues?
|
|
|
07-09-2022, 12:48 AM
|
#65
|
Human being with feelings
Join Date: Jul 2018
Posts: 16
|
Quote:
Originally Posted by Rockum
Loading exported themes the colors are hue shifted. For example, teal becomes a mustard yellow.
|
You are right, the same here.
@X-Raym
I noticed that color-shifting comes from reversed color representation, RGB --> BGR, eg. #00AABB becomes #BBAA00
|
|
|
07-09-2022, 02:06 AM
|
#66
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@all
Export on Win are color channel inverted ?
Can someone test on MacOS before I made change on the related part of the code ?
|
|
|
07-10-2022, 04:07 AM
|
#67
|
Human being with feelings
Join Date: Sep 2019
Location: Austria
Posts: 443
|
Quote:
Originally Posted by X-Raym
@all
Export on Win are color channel inverted ?
Can someone test on MacOS before I made change on the related part of the code ?
|
Here on Mac OS 10.14 exporting via your script is channel inverted too!
As an addition, would it be possible, exporting is saving the image resource path?
|
|
|
07-10-2022, 10:16 AM
|
#68
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
v0.6.10 should fix color inversion on all OS, thx for trying !
|
|
|
07-10-2022, 11:22 AM
|
#69
|
Human being with feelings
Join Date: Jun 2020
Posts: 656
|
The color swap is still there (0.6.10) with me on Mac, it's the same bug I reported like a year ago, blues turn to yellows and such, with the values being moved around. When using it real time it seems to be working well but this happens after exporting the theme
|
|
|
07-10-2022, 11:27 AM
|
#70
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@tonalstates
Quote:
it's the same bug I reported like a year ago,
|
Same result but not same source, as far as I know, as it wasn't reversed before ReaImGUI v0.7.0 on Win.
But I don't get what it hasn't been fixed in v0.6.10
See my update: https://github.com/X-Raym/REAPER-Rea...a6c7213a2aL150
I littelly just flip the color change for both OS by changing this rule.
I need MacOS to be really sure of what I'm doing. Without MacOS it can only be trials and errors.
|
|
|
07-10-2022, 06:55 PM
|
#71
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
@X-Raym
Code:
rgb_or_bgr_from_reaper = reaper.GetSomeColor()
rgb = reaper.ImGui_ColorConvertNative(rgb_or_bgr_from_reaper)
-- gui code using rgb here
rgb_or_bgr_to_reaper = reaper.ImGui_ColorConvertNative(rgb)
reaper.SetSomeColor(rgb_or_bgr_to_reaper)
|
|
|
07-10-2022, 10:26 PM
|
#72
|
Human being with feelings
Join Date: Jun 2020
Posts: 656
|
Quote:
Originally Posted by X-Raym
@tonalstates
Same result but not same source
|
Yeah, Im sorry, same output I meant. Didn't want to sound harsh or anything, it's just weird haha If I knew where to put Cfillions code I'd try it too, I could try some stuff for you if you'd like since I'm on Mac
|
|
|
07-11-2022, 05:16 AM
|
#74
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Quote:
Originally Posted by OLSHALOM
As an addition, would it be possible, exporting is saving the image resource path?
|
It should already do that ? what field it is in the theme file ? ui_image is already in it
https://github.com/X-Raym/REAPER-Rea...eaker.lua#L224
|
|
|
07-11-2022, 09:33 AM
|
#75
|
Human being with feelings
Join Date: Jul 2018
Posts: 16
|
Quote:
Originally Posted by X-Raym
@all
Can you guys tets this beta release on Mac and Windows ? thx !
|
Beta 0.6.11 working ok here, Windows 10.
|
|
|
07-11-2022, 03:27 PM
|
#76
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Faberman
OK well, no mac OS user feedback, too bad,
but I release the new version public anyway. Hope it works !
Best,
|
|
|
07-11-2022, 04:06 PM
|
#77
|
Human being with feelings
Join Date: Sep 2019
Location: Austria
Posts: 443
|
Quote:
Originally Posted by X-Raym
@Faberman
OK well, no mac OS user feedback, too bad,
but I release the new version public anyway. Hope it works !
Best,
|
@X-Raym
Sadly 0.6.11 makes no difference on MacOsX(10.13.6).
Still reversed color export.
(I downloaded 0.6.11 from the link, imported it correctly, checked the script for version 0.6.11)
|
|
|
07-11-2022, 04:15 PM
|
#78
|
Human being with feelings
Join Date: Sep 2019
Location: Austria
Posts: 443
|
Quote:
Originally Posted by X-Raym
|
Thanks for your work, X-Raym.
"ui_img_path=" is missing in the exported theme file of the theme tweaker.
Only "ui_img=" is presented in the theme file.
user_font 8to15 is missing as well.
|
|
|
07-11-2022, 04:15 PM
|
#79
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@ OLSHALOM
can you add
Code:
if os_sep == "/" and colors[v] ~= colors_backup[v] then
local r, g, b = reaper.ColorFromNative( colors[v] )
colors[v] = reaper.ColorToNative(b, g, r)
end
below this line ?
and if this doesn't work
Code:
if os_sep == "/" and colors[v] ~= colors_backup[v] then
local r, g, b = reaper.ColorFromNative( colors[v] )
colors[v] = reaper.ColorToNative(r, g, b)
end
|
|
|
07-11-2022, 04:35 PM
|
#80
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,630
|
Quote:
Originally Posted by X-Raym
@MonkeyBars
Do you still have this issue as well?
|
I can now use the script in macOS! Thanks.
|
|
|
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 06:58 AM.
|