View Single Post
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