52 lines
1.4 KiB
Lua
52 lines
1.4 KiB
Lua
--------------------------------------
|
|
----------// HEADER //----------------
|
|
--------------------------------------
|
|
--[[
|
|
* REALIVE: Reaper Setup for a Complete Live Playback Engine
|
|
* ReaScript Name: Realive_ProjectTabsList_Disable.lua
|
|
* Description: ProjectTabsList_Disable
|
|
* Instructions:
|
|
* Author: Alex Paquette
|
|
* Repository:
|
|
* Repository URI:
|
|
* File URI:
|
|
* Licence: GPL v3
|
|
* Forum Thread:
|
|
* Forum Thread URI:
|
|
* REAPER: 5
|
|
* Extensions: SWS/S&M
|
|
* Version: 1.0
|
|
--]]
|
|
|
|
--[[
|
|
* Changelog:
|
|
* v1.0 (2019-06-02)
|
|
+ Initial Release
|
|
--]]
|
|
|
|
|
|
--------------------------------------
|
|
----------// VARIABLES //-------------
|
|
--------------------------------------
|
|
|
|
|
|
|
|
local reaper = reaper -------// Performance Enhancement //----------
|
|
|
|
-----// Window Set Numbers //------------------------------
|
|
local PlayViewWindowSet = 01 -- Enter Window Set Number Used for the "Live Play" View
|
|
local AllTracksViewWindowSet = 02 -- Enter the Window Set Number for the "Show All Tracks" View
|
|
local WindowSetBaseNumber = 40453
|
|
local PlayView_cmdID = WindowSetBaseNumber+PlayViewWindowSet
|
|
local AllView_cmdID = WindowSetBaseNumber+AllTracksViewWindowSet
|
|
|
|
-----// Other Variables //------------------------------
|
|
local cmd_id = reaper.NamedCommandLookup("_RS2071ccff7199c897478c49da97ca1422fc732d4f")
|
|
|
|
local state = reaper.GetToggleCommandState(cmd_id)
|
|
|
|
if state == 0 then
|
|
reaper.Main_OnCommand(cmd_id, 0)
|
|
reaper.SetCursorContext(1) --Focus Arrange Window
|
|
end
|