top of page
GameAudio & Art
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
![](https://static.wixstatic.com/media/fc32ca_ce420e9bb52c45e180e78eae3346c302~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_BRONZE.png)
MEDIA
reaper.AZ_GetSelectedMediaTypeCount
対応バージョン:
以降
選択中の全てのメディアの数(形式指定を含む)
LUA
- API Detail -
▼入力値
proj (integer):プロジェクトID
mediaType(char):タイプ名("WAV","MP4","MP3"etc)
※medeiaTypeを無記名にすると全てとなります。
▼出力値
retval(bool):APIの実行成功の有無
allCount(integer):指定プロジェクト全てのメディア数
typeCount(integer):指定形式のメディア数
bottom of page