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).