Old 07-22-2019, 03:27 AM   #1
davek
Human being with feelings
 
Join Date: Apr 2017
Location: Liverpool, United Kingdom
Posts: 17
Default Track colours to marker colours

It would be useful when changing marker colours, that there was some way you could make the marker the same colour as the track you have selected.
__________________
Original Music on YouTube : Original Music on Soundcloud : Original Music on Bandcamp
davlinste is the solo work of Dave Kelly, an English songwriter based in Liverpool UK.
davek is offline   Reply With Quote
Old 07-23-2019, 05:23 AM   #2
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,030
Default

This Lua script will change the marker color at the cursor position to the same color as the selected track. You can create a hotkey for it and use Markers: Go to next marker or Markers: Go to previous marker or just set the cursor at the marker with the mouse.
Go to Actions > New > Set current marker color to selected track color.lua > Save > paste script below > ctrl+s > close
Code:
curpos = reaper.GetCursorPosition()

track = reaper.GetSelectedTrack( 0, 0 ) 

trk_color = reaper.GetTrackColor( track )

retval, num_markers, num_regions = reaper.CountProjectMarkers( 0 )

  for i = 0, num_markers do
    
       retval, isrgn, pos, rgnend, name, markrgnindexnumber, mrkcolor = reaper.EnumProjectMarkers3( 0, i )
       if curpos == pos and isrgn == false then
       reaper.SetProjectMarker3( 0, i, 0, pos, rgnend, name, trk_color )
       break
       end
  end
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
MusoBob is offline   Reply With Quote
Old 07-25-2019, 12:38 AM   #3
davek
Human being with feelings
 
Join Date: Apr 2017
Location: Liverpool, United Kingdom
Posts: 17
Default

Thank you, I will give that a try.....
__________________
Original Music on YouTube : Original Music on Soundcloud : Original Music on Bandcamp
davlinste is the solo work of Dave Kelly, an English songwriter based in Liverpool UK.
davek 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 02:57 PM.


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