Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 06-27-2020, 06:01 AM   #1
Frank B
Human being with feelings
 
Frank B's Avatar
 
Join Date: Nov 2015
Posts: 137
Default create marker apply custom color slot 1-8

im surprised this isn't a thing yet?
simply trying to insert a marker with a choice of colors.

edit: actions set to several different colors that will instantly insert a marker with (predetermined) color of choice. Without a dialog.

Insert marker at cursor with custom color slot 1
Insert marker at cursor with custom color slot 2
ETC.

Last edited by Frank B; 06-27-2020 at 12:32 PM.
Frank B is offline   Reply With Quote
Old 06-27-2020, 08:10 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

You mean with a colorselector?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-27-2020, 08:21 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Try this script:

Code:
-- Meo-Ada Mespotine - 27th of June 2020 - licensed under MIT-license
--
-- adds a new marker and asks for name and color
-- hit esc at colorpicker to use Reaper's default color

local position, retval, name, color

position = reaper.GetCursorPosition()
retval, name = reaper.GetUserInputs("Enter a marker name", 1, "Marker Name:", "")
if retval==false then return end
retval, color = reaper.GR_SelectColor()
if retval==0 then color=0 else color=color|0x1000000 end
reaper.AddProjectMarker2(0, false, position, 0, name, -1, color)
The color-selector that opens has numerous slot that can be set, at least on Windows.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-27-2020, 08:25 AM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

There's also the "Markers: Insert and/or edit marker at current position" action which allows picking the color before inserting the marker.
cfillion is offline   Reply With Quote
Old 06-27-2020, 08:39 AM   #5
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Quote:
Originally Posted by cfillion View Post
There's also the "Markers: Insert and/or edit marker at current position" action which allows picking the color before inserting the marker.
Oh, didn't know that. Probably even better, as one can have one shortcut for edit and insert.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-27-2020, 12:27 PM   #6
Frank B
Human being with feelings
 
Frank B's Avatar
 
Join Date: Nov 2015
Posts: 137
Default

The idea is to set keycuts up for different colors.
so instantly the marker is added with color.
even if it uses the custom color palette slot 1-10
Frank B is offline   Reply With Quote
Old 06-28-2020, 12:53 AM   #7
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,852
Default

Have a look at the following scripts from Outborder (available via ReaPack as part of the Outboarder Scripts repository https://reapack.com/repos):
  • Insert Marker at Edit cursor with custom Name and Color
  • Insert Marker at Play cursor with custom Name and Color

Name and color values can be changed in the USER AREA section inside the script file. So it's possible to make multiple copies of each script (for all the different name/color combinations you need).
__________________
ReaLauncher

Last edited by solger; 06-28-2020 at 02:14 AM. Reason: typo in url link
solger is offline   Reply With Quote
Old 06-29-2020, 12:10 PM   #8
Frank B
Human being with feelings
 
Frank B's Avatar
 
Join Date: Nov 2015
Posts: 137
Default

Thanks ill have a look at that.. I thought I had all the repos installed I guess not
Frank B 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 10:52 AM.


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