top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

Media

11

指定フォルダのWAVファイルを1秒間隔で並列挿入

RANK

SNS SHARE

AZSTOKE_UserInputPathAutoInsertMedia

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",1,"Path :","D:\\")

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


startPos = 0


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

    retval = AZ_SetPlayCursorPosition(0,0,startPos,0)

    item = AZ_InsertMediaOutItem(0,value)

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

    startPos = endPos + 1 

import sys

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

from AZSTOKE_BRONZE_python import *

from AZSTOKE_SILVER_python import *


・BRONZE/SILVER API will be available.


def Msg(parm):

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


- Provides a console output function for debugging

retval,inputList = AZ_GetUserInputList("AZWavList",1,"Path :","D:\\")


-Set up SimpleUI to have the user enter pass information and assign it to the inputList array.


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


・Extract the "wav" files from the entered path information and assign them to the fileList array.


startPos = 0


・Support for initializing startPos


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


・Supports For loop for fileList


retval = AZ_SetPlayCursorPosition(0,0,startPos,0)


- Set the cursor position to startPos seconds.


item = AZ_InsertMediaOutItem(0,value)


- Insert media and assign the specified media to the item


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


・Get the seconds at the end of the item


startPos = endPos + 1


- Set the start point of the next media 1 second after the end point

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

指定フォルダの中にwavファイルを用意

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

PYTHON

​ReaScript File Download 👇

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

- Script Image -
bottom of page