top of page
- API -
mediaItem = reaper.AZ_InsertMediaTrackItemSecond(track,filePath,startEndType,setSecond)
- API Detail-
▼Input value
track(mediaTrack) – The specified track ID
filePath(string): "File path name"
startEndType (integer): 0/time from 0 seconds 1/time from the last waveform point
setSecond (number): Setting position (seconds)
▼Output value
mediaItem(item): variable
- SCRIPT -
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
track = reaper.GetTrack(0,1)
mediaItem = reaper.AZ_InsertMediaTrackItemSecond(track,"E:\\Test_sound\\AZ_vo_women_01.wav",0,2)
name = reaper.AZ_GetMediaItemName(mediaItem)
Msg(name)
MEDIA
AZ_InsertMediaTrackItemSecond
Supported versions:
1.0.3
onwards
Insert media at specified position (seconds) in specified track item
bottom of page