top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

Media

9

Delete all muted media

RANK

SNS SHARE

AZSTOKE_AllDeleteMuteMedia

import sys

sys.path.append(RPR_GetResourcePath() + r"\UserPlugins")

from AZSTOKE_BRONZE_python import *


def Msg(parm):

    RPR_ShowConsoleMsg(str(parm) + "\n")


_,_,_,allCount,_ = AZ_GetMediaTypeCount(0,"",0,0)


for i in reversed(range(allCount)):

    _,_,_,muteType = AZ_GetMediaMute(0,i,0)

    if muteType:

      AZ_DeleteMedia(0,i)

import sys

sys.path.append(RPR_GetResourcePath() + r"\UserPlugins")

from AZSTOKE_BRONZE_python import *


  • Import the Bronze API.

  • If you don't have it installed, you'll need to download it here

def Msg(parm):

RPR_ShowConsoleMsg(str(parm) + "\n")


  • Set up the Msg function to output to the console screen


_,_,_,allCount,_ = AZ_GetMediaTypeCount(0,"",0,0)

  • Gets the number of all media (allCount).


for i in reversed(range(allCount)):

  • Rotate the media several sentences For.

  • At this time, by adding "reversed", the number of media will be subtracted while looping "For".

  • For example, the number i decreases from the final value, like this: 5.4.3.2.1.0.

_,_,_,muteType = AZ_GetMediaMute(0,i,0)

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

if muteType:

  • If muted, execute the following process

AZ_DeleteMedia(0,i)

  • Delete the media ID of i

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

  1. Multiple media in a project

  2. Place muted media

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

PYTHON

​ReaScript File Download 👇

​※実行するには専用APIが必要です

- Script Image -
bottom of page