Go Back   Cockos Incorporated Forums > REAPER Forums > Dstruct's Casa De Nitpicks

Reply
 
Thread Tools Display Modes
Old 01-10-2018, 06:22 PM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default ReaScript: New Default Track Color isn't 0 ?

Hi,

it seems that from ReaScript, new track color isn't rvb 0 but r192, v64, b0 ?

When we reset track color with the native action Track: Set to default color, the track color become 0, as expected.

Code:
track = reaper.GetSelectedTrack(0,0)
color = reaper.GetMediaTrackInfo_Value(track, "I_CUSTOMCOLOR")
color_r, color_v, color_b = reaper.ColorFromNative( color )


In video:


Having color 0 would be more friendly with script who deal with track colors (cause r192, v64, b0 is far from neutral).

Thanks for taking a look !

(tested in REAPER v5.40 and 5.70 on Windows and MacOS X - v5.70 only).
X-Raym 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 05:09 AM.


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