top of page

GameAudio & Art

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

- SIMPLE SCRIPT -

retval,trackList = AZ_SILVER.AZ_GetSamePerfectTrackNameList(projID,checkName)

- API -

TRACK

AZ_SILVER.AZ_GetSamePerfectTrackNameList

完全一致同名トラックアイテムの配列出力

- API Detail -

▼入力値 

projID(ReaProject):プロジェクトID

checkName(string) : 同名トラック検索用


▼出力値 

retval(boolean):API実行の成否

trackList(table) : 同名トラック配列 .Track/.Index

bottom of page