- API -
dofile(reaper.AZ_GetLuaInitPath())
endTime = reaper.AZ_GetSelectedMediaEndTime(0,0)
length = reaper.AZ_GetSelectedMediaLength(0,0)
mediaInterval = 0.2
if retval then
startPos = endTime+mediaInterval
for i =1,10 do
reaper.AZ_SetSelectedMediaActiveTakeCopy(0,0,0,startPos)
startPos =length+mediaInterval+startPos
end
end
- API Detail-
Multiple media in a project
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
endTime = reaper.AZ_GetSelectedMediaEndTime(0,0)
Set the end position of the selected media to the variable (endTime)
length = reaper.AZ_GetSelectedMediaLength(0,0)
Set the length of the selected media to the variable (length)
mediaInterval = 0.2
Prepare media interval value as a variable
if retval then
If the variable result is retval(true), continue below
startPos = endTime+mediaInterval
Set the variable (endTime) + the media interval value variable (mediaInterval) to the variable (startPos)
for i =1,10 do
Loop 10 times
reaper.AZ_SetSelectedMediaActiveTakeCopy(0,0,0,startPos)
Duplicate the selected media (in this case, a video) to the specified position (startPos)
startPos =length+mediaInterval+startPos
Set the variable (length) + media interval value variable (mediaInterval) + variable (startPos) to the variable (startPos).
end
end