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