top of page

function Msg(param)

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

end


track = reaper.GetTrack(0, 1)

allCount,typeCount = reaper.AZ_GetTrackItemMediaTypeCount(track,"WAV")

Msg(allCount)

Msg(typeCount)

- SCRIPT -

allCount,typeCount = reaper.AZ_GetTrackItemMediaTypeCount(track,"mediaType")

- API -

ID

MEDIA

reaper.AZ_GetTrackItemMediaTypeCount

対応バージョン:

2.0.0

以降

Output the number of media types in the specified track items

- API Detail-

▼Input value

  • track(MediaTrack): specified track

  • mediaType(string): Type name ("WAV", "MP4", "MP3", etc.)

  • *If you leave the mediaType anonymous, all will be included.

▼Output value

  • retval(bool): Whether the API execution was successful or not

  • allCount(integer): The number of media in the specified project

  • typeCount(integer): Number of media of the specified format

bottom of page