Thread: Radial Menu
View Single Post
Old 01-31-2017, 07:14 AM   #100
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Right now I'm getting them from act function
Code:
mnu_arr[-3][mouse_act-1].lbl
but that has prefix JS:,VST: etc. probably because of that its not converting. I am reading them from table but this is the populating function:
Code:
local function get_fx() 
mnu_arr[-3] = {}
    if sel_track then
      local cnt_fx = reaper.TrackFX_GetCount(sel_track)
        for i = 1, cnt_fx do 
        local _, name = reaper.TrackFX_GetFXName(sel_track, i-1, "")   
        mnu_arr[-3][i-1] = {["lbl"] = name, ["act"] = i}        
        end
    end
end
Sexan is offline   Reply With Quote