top of page
- API -
depthNum = reaper.AZ_GetTrackItemDepth(track)
- API Detail-
▼Input value
track(MediaTrack): The specified track ID
▼Output value
retval(boolean): Success or failure of API execution
depth(integer): number of levels
- SCRIPT -
package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"
require("reaper_AZSTOKE_SILVER")
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
track = reaper.AZ_GetTrackItemSelect(0,0,1)
depthNum = reaper.AZ_GetTrackItemDepth(track)
Msg(depthNum)
trackSec = reaper.AZ_GetTrackItemSelect(0,1,1)
depthNum = reaper.AZ_GetTrackItemDepth(trackSec)
Msg(depthNum)
TRACK
AZ_GetTrackItemDepth
Supported versions:
1.0.3
onwards
Get the number of levels of the specified track item
bottom of page