top of page

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)

retval,depthNum = reaper.AZ_GetTrackItemDepth(track)

Msg(depthNum)


trackSec = reaper.AZ_GetTrackItemSelect(0,1,1)

retval,depthNum = reaper.AZ_GetTrackItemDepth(trackSec)

Msg(depthNum)

- SCRIPT -

retval,depthNum = reaper.AZ_GetTrackItemDepth(track)

- API -

対応バージョン:

1.0.0

以降

TRACK

reaper.AZ_GetTrackItemDepth

Get the number of levels of the specified track item

- 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

bottom of page