Quote:
Originally Posted by Edgemeal
# Reascript: fix setting take marker source time [p=2258096]
|
Thanks.
Inserting a take marker via API works now but I still can't
move it, it seems, e.g.
Code:
item = reaper.GetMediaItem(0, 0)
take = reaper.GetMediaItemTake( item, 0)
reaper.SetMediaItemTakeInfo_Value(take,"D_TAKE_MARKER_SRC_TIME:", 0) -- ok
reaper.SetMediaItemTakeInfo_Value(take,"D_TAKE_MARKER_SRC_TIME:1",100) -- doesn't move it
also querying position
Code:
pos = reaper.GetMediaItemTakeInfo_Value(take, "D_TAKE_MARKER_SRC_TIME:1")
seems to always return 0.0 here.
Other thoughts about take marker API:
- via action we can add tm also in other than first loop iteration which doesn't seem possible via API (not sure if important)
- way to get number of current tm's (or way of iterating them) and delete tm seems missing currently