Old 04-10-2015, 02:54 AM   #1
little Ellison
Human being with feelings
 
Join Date: Jun 2014
Posts: 47
Default how to get the default track color?

How do I get the default track color? I'm programmatically changing the color, and want to reset to default, but get track color returns 0 - black. Can anyone point me in the right direction here, please? Any guidance much appreciated...
little Ellison is offline   Reply With Quote
Old 04-10-2015, 05:36 AM   #2
little Ellison
Human being with feelings
 
Join Date: Jun 2014
Posts: 47
Default

To clarify, I'm getting colorref from GetSetMediaTrack(I_CUSTOMCOLOR), with a retval of 40c0, and 0 from GetTrackColor, which I call before changing the color, neither of which are the default grey color.
little Ellison is offline   Reply With Quote
Old 04-15-2015, 04:02 PM   #3
little Ellison
Human being with feelings
 
Join Date: Jun 2014
Posts: 47
Default

Ok, I think I've figured it out - if GetTrackColor returns 0, it's default, 1000000 is black. The extra color bit, |0x1000000, is what I missed to start with.

It isn't a color, though, 0, you have to use reaper's command for setting track to default color, cmd id = 40359, to actually do the deed.
little Ellison 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:00 PM.


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