top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

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

MEDIA

reaper.AZ_GetSelectedTrackMediaLength

Get the length (in seconds) of the specified media in the specified selected track

- 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