generated from cfillion/reapack-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved DoomSquirrel_Reset vertical zoom (TCP) under the "Tracks" folder
- Loading branch information
1 parent
f954628
commit cad41d7
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- @description DoomSquirrel_Reset vertical zoom (TCP) | ||
-- @author DoomSquirrel | ||
-- @license GPL v3 | ||
-- @about | ||
-- # Reset TCP vertical zoom | ||
-- Reset vertical zoom of the TCP to the amount specified in the ZOOM_LEVEL variable | ||
-- @repository | ||
-- https://github.com/tuomiorava/REAPER-ReaScripts | ||
-- @links | ||
-- My music = http://iki.fi/atolonen | ||
-- @donation | ||
-- Donate via PayPal https://www.paypal.com/donate/?hosted_button_id=2BEA2GHZMAW9A | ||
-- @version 1.2 | ||
-- @changelog | ||
-- Now uses command: 40110 (Action: "View: Toggle track zoom to minimum height") for zooming out. | ||
|
||
---------------------------- | ||
--- USER SETTINGS ---------- | ||
---------------------------- | ||
|
||
ZOOM_LEVEL = 4; -- How many times to zoom in. | ||
|
||
---------------------------- | ||
--- END OF USER SETTINGS --- | ||
---------------------------- | ||
|
||
-- Zoom all the way out vertically | ||
reaper.Main_OnCommand(40110, 0); -- Action: "View: Toggle track zoom to minimum height" | ||
|
||
-- Zoom back in vertically | ||
for i = 0, ZOOM_LEVEL-1 do | ||
reaper.Main_OnCommand(40111, 0); -- Action: "zoom in vertically" | ||
end |