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
item = reaper.AZ_GetMediaItemSelect(0,0,0)
retval,trackList = AZ_SILVER.AZ_GetSamePerfectTrackNameList(0,"AZSTOKE")
for i, value in pairs(trackList) do
_,name = reaper.AZ_GetTrackItemName(trackList[i].Track)
Msg(trackList[i].Index)
Msg(name)
end
- SCRIPT -
retval,trackList = AZ_SILVER.AZ_GetSamePerfectTrackNameList(projID,checkName)
- API -
ID
![](https://static.wixstatic.com/media/fc32ca_f9681906c77e41e2bb63e2fc71e38167~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_SILVER.png)
TRACK
AZ_SILVER.AZ_GetSamePerfectTrackNameList
対応バージョン:
1.0.0
以降
Array output of track items with the same exact name
LUA
- API Detail-
▼Input value
projID(ReaProject): Project ID
checkName(string) : For searching tracks with the same name
▼Output value
retval(boolean): Success or failure of API execution
trackList(table) : Track array with the same name .Track/.Index