top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"

require("reaper_AZSTOKE_SILVER")


function Msg(param)

 reaper.ShowConsoleMsg(tostring((param)).."\n")

end


track,trackId = reaper.AZ_GetSelectedTrackFirstInfo(0)

retval,name = reaper.AZ_GetTrackIdName(0,trackId)

Msg(name)


retval,name = reaper.AZ_GetTrackItemName(track)

Msg(name)

- SCRIPT -

track,trackId = reaper.AZ_GetSelectedTrackFirstInfo(projID)

- API -

TRACK

reaper.AZ_GetSelectedTrackFirstInfo

Get the first track and track ID of the selected tracks

- API Detail-

▼Input value

  • projID (ReaProject): Project ID

▼Output value

  • track(MediaTrack) – the first selected track item

  • trackID(integer) : The regular track ID of the first selected track

bottom of page