top of page
- API -

trackList,trackCount = reaper.AZ_GetSelectedTrackIdChildList(projID,selectTrackID)

- API Detail-

▼Input value

  • projID (ReaProject): Project ID

  • selectTrackID(integer): Select track ID

▼Output value

  • retval(boolean): Success or failure of API execution

  • trackList(table)(MediaTrack) : Track array

*The child's truck will be returned. The child's truck will not be included.


- SCRIPT -

os = reaper.GetOS()

if "Win" == string.match(os,"(Win)") then

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

else

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

end

require("reaper_AZSTOKE_SILVER")

function Msg(param)

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

end


trackList = AZ_SILVER.AZ_GetSelectedTrackIdChildList(0,0)


for i, value in pairs(trackList) do

name = reaper.AZ_GetTrackItemName(trackList[i])

Msg(name)

end

TRACK

AZ_GetSelectedTrackIdChildList

Supported versions:

1.0.3

onwards

Output the child tracks of the specified track as an array

bottom of page