top of page
- API -

dofile(reaper.AZ_GetLuaInitPath())


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


for i = 0,allCount-1 do

name = reaper.AZ_GetSelectedMediaName(0,i)

name = name.."_ng"

reaper.AZ_SetSelectedMediaName(0,i,name)

Msg(name)

end

- API Detail-

  1. Multiple media in a project

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())


allCount,reaper.AZ_GetSelectedMediaTypeCount(0,"")

  • Get the number of selected media (allCount)



for i = 0,allCount-1 do

  • Loop from 0 to the variable (allCount-1)

name = reaper.AZ_GetSelectedMediaName(0,i)

  • Save the selected media name in variable (i) in variable (name).

name = name.."_ng"

  • Add _ng to the variable (name)

reaper.AZ_SetSelectedMediaName(0,i,name)

  • Set the variable (name) to the media name of the selected media ID (i)

Msg(name)

  • Prints the media ID to the console

  • Run allCount times


end

- SCRIPT -

Media

AZSTOKE_SelectAllMediaAddNGWord

Add "_ng" to the name of all selected media

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