top of page

9

Media

AZSTOKE_AllDeleteMuteMedia

ミュートのメディアを全削除

RANK

allCount = reaper.AZ_GetMediaTypeCount(0,"")


for i = allCount-1,0,-1 do

   muteType = reaper.AZ_GetMediaMute(0,i)

   if (muteType) then

      reaper.AZ_DeleteMedia(0,i)

   end

end

allCount = reaper.AZ_GetMediaTypeCount(0,"")

  • メディアの数を出力してallCount変数に代入

for i = allCount-1,0,-1 do

  • メディア数文Forで回す。

  • この際に-1 doを追加することでメディアの数からマイナスしていく形でForをループされていく。例:5.4.3.2.1.0のように最終値からiが減っていく形になる。 

   muteType = reaper.AZ_GetMediaMute(0,i)

  • iのIDメディアのミュートのタイプ(bool)を取得

if (muteType) then

  • ミュートしていればTrueで以下処理を実行

      reaper.AZ_DeleteMedia(0,i)

  • iのメディアIDを削除する

   end

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. プロジェクト内にメディアを複数設置

  2. ミュートしているメディアを設置

- 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