View Single Post
Old 09-02-2018, 04:07 PM   #118
woodslanding
Human being with feelings
 
woodslanding's Avatar
 
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
Default

okay, now that I'm over that hurdle, I'd like to actually change it to the track color. I've tried this, in the main method:
Code:
local trackColor = reaper.GetTrackColor(tr)
        
        GUI.Msg("color"..trackColor)
        --GUI.elms.frm_track.color = "red"
        --GUI.color("frm_track", "red")
        
	
	-- If we don't have a track, hide the track elements
    -- and pop up a warning
The first commented line doesn't work, the second crashes the script. What syntax should I be using here?

I am getting track colors okay, looks like.

Reading further, looks like I need a table of values. But not sure what the reaper method is giving me. It's not showing up as hex in the console....
__________________
eric moon
Very Stable Genius
https://gogolab.com/

Last edited by woodslanding; 09-02-2018 at 04:14 PM.
woodslanding is offline   Reply With Quote