- API -
trackList,trackCount = reaper.AZ_GetTrackIdChildList(projID,trackID)
- API Detail-
▼Input value
projID (ReaProject): Project ID
trackID(integer): Track ID
▼Output value
retval(boolean): Success or failure of API execution
trackList(table)(MediaTrack) : Child track array
trackCount(integer) : number of child tracks
*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, count = reaper.AZ_GetTrackIdChildList(0,0)
Msg(count)
for i, value in pairs(trackList) do
name = reaper.AZ_GetTrackItemName(trackList[i])
Msg(name)
end