Old 01-26-2012, 10:26 AM   #1
EnkelMagnus
Human being with feelings
 
Join Date: Feb 2010
Posts: 96
Default getTrackColor() ??

Is there a way to get the color of a track ? I'm working on a midi controller and just realized it would be pretty slick to have color coding on the controller match that of Reaper. If not i want it.
EnkelMagnus is offline   Reply With Quote
Old 01-26-2012, 11:03 AM   #2
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

Yep, it exists. The function is called almost exactly as you expected: GetTrackColor()

From the ReaScript documentation list under Help -> HTML lists (auto-generated):

Quote:
Returns the track color, as 0x01RRGGBB. Black is returned as 0x01000000, no color setting is returned as 0.

int GetTrackColor(MediaTrack* track)
gofer is offline   Reply With Quote
Old 01-26-2012, 11:24 AM   #3
EnkelMagnus
Human being with feelings
 
Join Date: Feb 2010
Posts: 96
Default

Ah cool thanks. I did look for it but it was probably an old list.

I just saw an interview with Hans Zimmer and noticed an Euphonix System 5 in the background with colored knobs on it and thought that was a pretty nifty idea.
EnkelMagnus is offline   Reply With Quote
Old 01-26-2012, 11:41 AM   #4
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

Yeah, get track/item color have been added quite recently.

Agreed, control surface reflecting the track colors for sure is extremely cool . Good luck with your project, certainly hope to hear/see more in due time.
gofer is offline   Reply With Quote
Reply

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 06:10 AM.


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