top of page
- API -
colorNum,rNum,gNum,bNum = reaper.AZ_GetTrackItemColor(track)
- API Detail-
▼Input value
track (MediaTrack): track item
▼Output value
retval(boolean): Success or failure of API execution
color(integer) : Color value
r(integer) : Red value
g(integer) : green value
b(integer) : Blue value
- SCRIPT -
package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"
require("reaper_AZSTOKE_SILVER")
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
track = reaper.AZ_GetTrackItemSelect(0,1,0)
colorNum,rNum,gNum,bNum = reaper.AZ_GetTrackItemColor(track)
Msg(colorNum)
Msg(rNum)
Msg(gNum)
Msg(bNum)
TRACK
AZ_GetTrackItemColor
Supported versions:
1.0.3
onwards
Gets the color value of the specified track item.
bottom of page