- API -
dofile(reaper.AZ_GetLuaInitPath())
allCount,_ = reaper.AZ_GetTrackMediaTypeCount(0,1,"")
for i = 0,allCount-1 do
name = reaper.AZ_GetTrackMediaName(0,1,i)
frame = reaper.AZ_GetTrackMediaStartTimeFrame(0,1,i)
Msg(frame..":"..name)
end
- API Detail-
Multiple media in a project
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
allCount,reaper.AZ_GetTrackMediaTypeCount(0,1,"")
Get the number of all media in the specified track (allCount)
for i = 0,allCount-1 do
Loop from 0 to the variable (allCount-1)
name = reaper.AZ_GetTrackMediaName(0,1,i)
Save the specified media name in the specified track in variable (i) to variable (name)
frame = reaper.AZ_GetTrackMediaStartTimeFrame(0,1,i)
Save the start frame of the specified media in the specified track in variable (i) to variable (frame).
Msg(frame..":"..name)
The number of frames (frame):media name (name) are output to the console screen in this order.
end