top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

Handautomer

2

"HANDAUTOMER" - Part 2 - Reduce labor costs by 90% - Fully automatic - From insert to region

RANK

SNS SHARE

AZSTOKE_HANDAUTOMER2

import sys

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

from AZSTOKE_BRONZE_python import *

from AZSTOKE_SILVER_python import *


def Msg(parm):

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


retval,inputList = AZ_GetUserInputList("AZWavList",2,"Path :,Loundness :","D:/,-21")


if retval:

    _,color,_,_,_ = AZ_GetRandomColor(0,0,0,0)

    retval,fileList = AZ_GetFilePathList(inputList[0],"wav")

    

    startPos = 0

    

    for i, value in enumerate(fileList, 0):

        item = AZ_InsertMediaTrackIdSecond(0,1,fileList[i],0,startPos)

        _,_,endPos = AZ_GetMediaItemEndTime(item,0)

        _,_,name,_ = AZ_GetMediaItemName(item,0,1024)

        AZ_SetMediaItemHANDAUTOMER(item,2)

        AZ_SetMediaItemLoudnessMaxMomentary(item,float(inputList[1]),0)

        AZ_AddRegionMarker(0,startPos,endPos,name,i,color,0)

        startPos = endPos + 1

import sys

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

from AZSTOKE_BRONZE_python import *

from AZSTOKE_SILVER_python import *


・Enable use of BRONZE/SILVER API


def Msg(parm):

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


- Provides a console output function for debugging


retval,inputList = AZ_GetUserInputList("AZWavList",2,"Path :,Loundness :","D:/,-21")


- Prepare an input UI and prepare the search folder path and the desired loudness value


if retval:


- Check if OK was pressed in the UI


_,color,_,_,_ = AZ_GetRandomColor(0,0,0,0)


・Get a random color and assign it to color


retval,fileList = AZ_GetFilePathList(inputList[0],"wav")


・Get "wav" files from the input folder and assign them to the fileList array

startPos = 0


- Set the start position to 0 seconds

for i, value in enumerate(fileList, 0):


- For loop playback for fileList


item = AZ_InsertMediaTrackIdSecond(0,1,fileList[i],0,startPos)


- Insert the file path of fileList into the track ID (1) at the position of startPos, get the inserted media, and assign it to item


_,_,endPos = AZ_GetMediaItemEndTime(item,0)


-Get the end position (seconds) of the item and assign it to endPos


_,_,name,_ = AZ_GetMediaItemName(item,0,1024)


・Get the name of the item and assign it to name


AZ_SetMediaItemHANDAUTOMER(item,2)


・Perform "HANDAUTOMER" compression type "2" on item


AZ_SetMediaItemLoudnessMaxMomentary(item,float(inputList[1]),0)


- Set the loudness to the specified item


AZ_AddRegionMarker(0,startPos,endPos,name,i,color,0)


- Set region markers at the start and end positions


startPos = endPos + 1


- Set the end position to +1 second, set the insertion position of the next media, and assign it to startPos

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

  • Prepare the Wav waveform you want to adjust in a folder

  • Prepare the track


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

PYTHON

​ReaScript File Download 👇

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

- Script Image -
bottom of page