Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 30.11.2025 - 12:41:27
Pages:  1  

reaper.SetTakeMarker() - sets no marker

MessageAuthor

The code below should set a take (media item)-marker at the edit cursor position. However - it appears, it does not. Code:




Gary328i

user




Statistics:
Messages: 560
Registration: 01.21.2003
19.06.22 - 06:16:44
Message # 1
RE: reaper.SetTakeMarker() - sets no marker

You try to set a take-marker with the index -1 which is an invalid index. It must be 0 for the first take-marker, 1 for the second, etc. Edit: you should also set the optional parameter source-position, or Reaper will not know, where to add it. Code:


-----------------------
-Alan 2005

motosport3

user




Statistics:
Messages: 529
Registration: 11.20.2002
19.06.22 - 06:26:24
Message # 2
RE: reaper.SetTakeMarker() - sets no marker

Looks like you need to specify the time where you want to insert it: Code:




NickBooras

user




Statistics:
Messages: 87
Registration: 01.20.2002
19.06.22 - 06:30:53
Message # 3
RE: reaper.SetTakeMarker() - sets no marker

No, your code will not work, at least not in the way the OP wanted. The OP wants to add a take-marker at edit cursor position. You need to translate that edit-cursor-position to the source-position before you could use it in SetTakeMarker. It's easy if the take has no stretch-markers. In that case, you just calculate edit_cursor_position-item_start. However, it is impossible to calculate properly, as soon as you have stretch-markers in the item, as they put the take-position all over the place. So the only reliable way to do it isn't using SetTakeMarker, only the action. But yes, the missing bit was the position, which unfortunately doesn't help solving the problem... Edit: corrected my post above accordingly




rukman

user




Statistics:
Messages: 95
Registration: 09.02.2001
19.06.22 - 06:39:06
Message # 4
RE: reaper.SetTakeMarker() - sets no marker

Hence I played god and striked me down...ehrmm..my code actually... :D




SoFreshSoFly

user




Statistics:
Messages: 169
Registration: 08.04.2003
19.06.22 - 06:46:23
Message # 5
RE: reaper.SetTakeMarker() - sets no marker
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

inside: IP.Board © 2025 5.1.1