top of page
- API -

retval,allCount,typeCount = reaper.AZ_GetSelectedMediaTypeCount(projID,mediaType)

- API Detail-

▼Input value

  • proj (integer): Project ID

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

  • *If mediaType is set to anonymous, it will be all.

▼Output value

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

  • allCount(integer): Number of all media in the specified project

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

- SCRIPT -

function Msg(param)

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

end


retval,allCount,typeCount = reaper.AZ_GetSelectedMediaTypeCount(0,0,2)

Msg(allCount)

Msg(typeCount)

MEDIA

reaper.AZ_GetSelectedMediaTypeCount

Supported versions:

1.0.3

onwards

Number of all selected media (including format specifications)

bottom of page