top of page

import sys

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

from AZSTOKE_BRONZE_python import *


def Msg(parm):

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


track = RPR_GetTrack(0,1)

mediaItem = AZ_InsertMediaTrackItemSecond(track,"E:\\Test_sound\\AZ_vo_women_01.wav",0,1)

retval,_,nameOut,_ = AZ_GetMediaItemName(mediaItem,"",1024)

Msg(nameOut)


- SCRIPT -

mediaItem = AZ_InsertMediaTrackItemSecond(track,filePath,startEndType,setSecond)

- API -

対応バージョン:

2.1.0

以降

MEDIA

AZ_InsertMediaTrackItemSecond

Insert media at specified position (seconds) in specified track item

- API Detail-

▼Input value

  • track(mediaTrack) – The specified track ID

  • filePath(string): "File path name"

  • startEndType (int) : 0/Time from 0 seconds 1/Time from the last waveform point

  • setSecond (float): Setting position (seconds)

▼Output value

  • mediaItem(item): variable

bottom of page