justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: With the new marker/region API, what is the path from adding a marker to getting the ProjectMarker object? For example, if I do something like ```lua number = r.AddProjectMarker(0, isrgn, pos, rgnend, name, -1) ``` then number is the displayed number, which can be duplicated. GetRegionOrMarker requires the internal index, and I'm not seeing how I'm supposed to get that without parsing all the markers/regions and finding the best match.
Asked by Nick (23.242.150.x) on March 26 2026, 1:01am
Reply on March 26 2026, 4:36pm:
    Yeah that's a bit crap eh, but you should probably scan all of the markers/regions to find the matching ID.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2026 Justin Frankel. | RSS