top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

9

Media

AZSTOKE_AllDeleteMuteMedia

Delete all muted media

RANK
SNS SHARE

retval,allCount = reaper.AZ_GetMediaTypeCount(0,"")


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

   retval , muteType = reaper.AZ_GetMediaMute(0,i)

   if (muteType) then

      reaper.AZ_DeleteMedia(0,i)

   end

end

retval,allCount = reaper.AZ_GetMediaTypeCount(0,"")

  • Output the number of media and assign it to the allCount variable

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

  • Rotate the media several sentences For.

  • In this case, by adding -1 do, the number of media is subtracted from the number of For loops. For example, 5.4.3.2.1.0, where i is decremented from the final value.

retval , muteType = reaper.AZ_GetMediaMute(0,i)

  • Get the mute type (bool) of the ID media for i

if (muteType) then

  • If muted, execute the following process

reaper.AZ_DeleteMedia(0,i)

  • Delete the media ID of i

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. Multiple media in a project

  2. Place muted media

- 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