top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

8

Media

AZSTOKE_SelectMovieMultiCopy

Copy 10 videos of selected media at 0.2 second intervals

RANK
SNS SHARE

function Msg(param)

 reaper.ShowConsoleMsg(tostring(param).."\n")

end


retval,endTime = reaper.AZ_GetSelectedMediaEndTime(0,0)

retval,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


function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end

  • Msg Set the console output function (no problem even if not specified)


retval,endTime = reaper.AZ_GetSelectedMediaEndTime(0,0)

  • Set the end position of the selected media to the variable (endTime)

retval,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


To use the API, you need to sign up for a plan.

Download the dedicated API

need to do it.

*SILVER is scheduled to be released in May.

Multiple media in a project

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

LUA

​ReaScript File Download 👇

* A dedicated API is required to run this

- Script Image -
bottom of page