top of page
- Script Code -

dofile(reaper.AZ_GetLuaInitPath())                

require("reaper_AZSTOKE_GOLD")                

                

url = "file://nas80f4ed/rigdocks/SVN_Test"

toDir = "F:\\RIGDOCKS\\File"

revisioln = 10

fileList = reaper.AZ_SVN_Export_CommitOnly(url, toDir, reaper.AZ_FileWriteMode_Overwrite(), revisioln) 


setTime = 0


for i, value in pairs(fileList) do

    item = reaper.AZ_InsertMediaTrackIdSecond(0,1,value,0,setTime)

    endTime = reaper.AZ_GetMediaItemEndTime(item)

    setTime = endTime + 1

end

- Warm Up -

  • The revision number you want to get is already in SVN
- Script Detail -

dofile(reaper.AZ_GetLuaInitPath())                

require("reaper_AZSTOKE_GOLD") 


・Make GOLD available               

 

url = "---URL---"


・Enter your SVN repository URL

toDir = "F:\\RIGDOCKS\\File"


・Destination for the specified revision of the file


revisioln = 10


・Specified revision number


fileList = reaper.AZ_SVN_Export_CommitOnly(url, toDir, reaper.AZ_FileWriteMode_Overwrite(), revisioln)


・After specifying the revision and copying, output the path information of the file in an array [fileList]


setTime = 0


・Insert start position (seconds)


for i, value in pairs(fileList) do


・Supports loops for arrays


    item = reaper.AZ_InsertMediaTrackIdSecond(0,1,value,0,setTime)


・Insert into project based on path information


    endTime = reaper.AZ_GetMediaItemEndTime(item)


・Get the final position of the inserted media (seconds)


    setTime = endTime + 1


・Set the next media start point one second after the final point


end

- API LINK -

AZ_SVN_Export_CommitOnly

AZ_FileWriteMode_Overwrite

AZ_InsertMediaTrackIdSecond

AZ_GetMediaItemEndTime

SVN

AZSTOKE_SVN_Revision_Insert_1

Get a specified revision of a file and automate inserting it

01_BRONZE_ss_edited.png
01_SILVER_edited_edited.png
03_GOLD_edited_edited.png
bottom of page