top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

4

Media

AZSTOKE_TrackAllMediaNameAndFrameConsol

Print all file names and frame numbers for the specified track to the console

RANK
SNS SHARE

function Msg(param)

   reaper.ShowConsoleMsg(tostring(param).."\n")

end


retval,allCount,_ = reaper.AZ_GetTrackMediaTypeCount(0,1,"")


for i = 0,allCount-1 do

   retval,name = reaper.AZ_GetTrackMediaName(0,1,i)

   retval,frame = reaper.AZ_GetTrackMediaStartTimeFrame(0,1,i)

   Msg(frame..":"..name)

end

function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end

  • Msg Set the console output function


retval,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)

retval,name = reaper.AZ_GetTrackMediaName(0,1,i)

  • Save the specified media name in the specified track in variable (i) to variable (name)

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

To use the API, you need to sign up for a plan.

Download the dedicated API

need to do it.

*SILVER is scheduled to be released in May.

  1. Multiple media in a project

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

LUA

​ReaScript File Download 👇

* A dedicated API is required to run this

- Script Image -
bottom of page