top of page
- API -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


allCount,_ = reaper.AZ_GetSelectedMediaTypeCount(0,"")


reaper.AZ_DeleteAllRegion(0)

color = reaper.AZ_GetRandomColor()


for i = 0,allCount-1 do

startPos = reaper.AZ_GetSelectedMediaStartTimeSeconds(0,i)

endPos = reaper.AZ_GetSelectedMediaEndTime(0,i)

name = reaper.AZ_GetSelectedMediaName(0,i)

reaper.AZ_AddRegionMarker(0,startPos,endPos,name,i,color)

end

- API Detail-

Place the required media in the project

*Media cannot be stacked vertically.

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


・Enable use of SilverAPI


allCount,_ = reaper.AZ_GetSelectedMediaTypeCount(0,"")


- Output the number of selected media and assign it to allCount


reaper.AZ_DeleteAllRegion(0)


- Delete all region markers in the specified project


color = reaper.AZ_GetRandomColor()


・Get a random color and assign it to color


for i = 0,allCount-1 do


- Supports looping for the number of selected media


startPos = reaper.AZ_GetSelectedMediaStartTimeSeconds(0,i)


- Get the start point (seconds) of each selected media


endPos = reaper.AZ_GetSelectedMediaEndTime(0,i)


- Get the end time (seconds) of each selected media


name = reaper.AZ_GetSelectedMediaName(0,i)


- Get the name of each selected media

reaper.AZ_AddRegionMarker(0,startPos,endPos,name,i,color)


- Set region markers according to acquired information


end

- SCRIPT -

Region

AZSTOKE_SetRegionMakerSelectedMedia

"Region" -Part 1- Automatic region setting for selected media

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