top of page

function Msg(param)

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

end


retval,allCount,typeCount = reaper.AZ_GetSelectedMediaTypeCount(0,"WAV")

Msg(allCount)

Msg(typeCount)

- SIMPLE SCRIPT -

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

- API -

ID

MEDIA

reaper.AZ_GetSelectedMediaTypeCount

対応バージョン:

以降

選択中の全てのメディアの数(形式指定を含む)

- API Detail -

▼入力値

  • proj (integer):プロジェクトID

  • mediaType(char):タイプ名("WAV","MP4","MP3"etc)

  • ※medeiaTypeを無記名にすると全てとなります。

▼出力値

  • retval(bool):APIの実行成功の有無

  • allCount(integer):指定プロジェクト全てのメディア数

  • typeCount(integer):指定形式のメディア数

bottom of page