View Single Post
Old 10-13-2016, 08:20 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Why not just nest tables?

Something like :
Code:
local items={}
for i=0,reaper.CountTracks(0)-1 do
  local track = reaper.GetTrack(0,i)
  local trackitems={}
  for j=0,reaper.CountTrackMediaItems(track)-1 do
    trackitems[j]=reaper.GetTrackMediaItem(track,j)
  end
  items[i]=trackitems
end
local item = items[2][2] -- 3rd item of 3rd track
local take = reaper.GetActiveTake(item)
reaper.ShowConsoleMsg(reaper.GetTakeName(take).."\n")
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote