View Single Post
Old 12-06-2019, 01:27 PM   #2
Yanick
Human being with feelings
 
Yanick's Avatar
 
Join Date: May 2018
Location: Moscow, Russia
Posts: 237
Default

Hi! In quotes where "Username" enter your name
In the second field (color) you can change the color - reaper.ColorToNative("Red number", "Green number", "Blue number")
By default there is red

Code:
reaper.Undo_BeginBlock()

local name = "Username"
local color = reaper.ColorToNative(180,60,50)|0x1000000

local _, num_markers, _ = reaper.CountProjectMarkers(0)
local cursor_pos = reaper.GetCursorPosition()


reaper.AddProjectMarker2(0, 0, cursor_pos, 0, name, num_markers+1, color)


reaper.Undo_EndBlock("Insert marker", -1)
__________________
My scripts for rendering

Last edited by Yanick; 12-06-2019 at 01:40 PM.
Yanick is offline   Reply With Quote