Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 01-19-2022, 11:28 PM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default API: AddProjectMarker2 doesn't allow two markers at the same position with same name

I just noticed, that AddProjectMarker2 doesn't allow putting two markers at the same position, when using the same name:


This doesn't work:
Code:
A=reaper.AddProjectMarker2(0, false, 30, 0, "one", -1, 0)
B=reaper.AddProjectMarker2(0, false, 30, 0, "one", -1, 0)
This however does work:
Code:
A=reaper.AddProjectMarker2(0, false, 40, 0, "one", -1, 0)
B=reaper.AddProjectMarker2(0, false, 40, 0, "two", -1, 0)
This happens also, when I create a region instead:
Code:
A=reaper.AddProjectMarker2(0, true, 60, 63, "one", -1, 0)
B=reaper.AddProjectMarker2(0, true, 60, 63, "one", -1, 0)
But not, if I make regionend smaller than regionstart:
Code:
A=reaper.AddProjectMarker2(0, true, 20, 3, "one", -1, 0)
B=reaper.AddProjectMarker2(0, true, 20, 3, "one", -1, 0)
So this is probably a bug. Especially, as the function doesn't give any feedback, that no marker was created. I need to get the count of markers before and after to get that something went wrong.

I also think, as putting existing markers at the same position is generally allowed by set-marker-functions and the ui, that such a limitation(if intended) wouldn't make much sense in the first place, imho...

Tested on Reaper 6.44x64 on Windows7

Edit:
I know, it's the bug-report section, but would it be possible to add to the retvals
  • 1. the index of the newly created marker within all markers and regions(currently it only returns the shown index, so getting the other index is really difficult and challenging)

    2. the guid of the created marker?

That would be a dream come true...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 01-20-2022 at 12:00 AM.
Meo-Ada Mespotine 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 07:13 AM.


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