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


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.

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

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 09:07 PM.

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