Hey guys. Anyway to change the master track layout in mixer? Been trying this but no go. I can get the info ok in the first 3 lines of the script but then no result when I try to change the layout.
Any ideas?
Cheers
Code:
master = reaper.GetTrack(1,0)
retval, layout_str = reaper.GetSetMediaTrackInfo_String(master,"P_MCP_LAYOUT", "",0)
master_visible = reaper.GetMasterTrackVisibility()
if master_visible == 0 then
if layout_str == "Small" then
reaper.GetSetMediaTrackInfo_String(master,"P_MCP_LAYOUT","",true) -- set default
else
reaper.GetSetMediaTrackInfo_String(master,"P_MCP_LAYOUT","Small",true)
end
end