top of page
function Msg(param)
reaper.ShowConsoleMsg(tostring((param)).."\n")
end
retval, length = reaper.AZ_GetSelectedTrackMediaLength(0, 1, 1)
Msg(length)
- SCRIPT -
retval, length= reaper.AZ_GetSelectedTrackMediaLength(projID, selectTrackID, trackItemID)
- API -
ID
![](https://static.wixstatic.com/media/fc32ca_ce420e9bb52c45e180e78eae3346c302~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_BRONZE.png)
MEDIA
reaper.AZ_GetSelectedTrackMediaLength
対応バージョン:
以降
Get the length (in seconds) of the specified media in the specified selected track
LUA
- API Detail-
▼Input value
projID (ReaProject): Project ID
selectTrackID (integer) : Select track ID
trackItemID(integer): Track item ID
▼Output value
retval(boolean): Success or failure of API execution
length(number): Length of the media (seconds)
bottom of page