top of page
- API -
length= reaper.AZ_GetSelectedMediaLength(projID, selectItemID)
- API Detail-
▼Input value
projID (ReaProject): Project ID
selectItemID(integer): Selected item ID
▼Output value
retval(boolean): Success or failure of API execution
length(number): Length of the media (seconds)
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
length = reaper.AZ_GetSelectedMediaLength(0, 3)
Msg(length)
MEDIA
AZ_GetSelectedMediaLength
Supported versions:
1.0.0
onwards
Get the length (in seconds) of the specified selected media

bottom of page



