From 85f6a19ca19646609f6a4ae2e165358c0b4f1dfa Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 17:31:23 +0300 Subject: [PATCH 01/17] - Test UI. --- Video/VideoAutoFlipper/VAF_GUI.lua | 300 ++++++++++++++++++ .../VideoAutoFlipper/Zly_VideoAutoFlipper.lua | 88 ++++- 2 files changed, 384 insertions(+), 4 deletions(-) diff --git a/Video/VideoAutoFlipper/VAF_GUI.lua b/Video/VideoAutoFlipper/VAF_GUI.lua index f07c0fd..eb47528 100644 --- a/Video/VideoAutoFlipper/VAF_GUI.lua +++ b/Video/VideoAutoFlipper/VAF_GUI.lua @@ -1,8 +1,308 @@ -- @noindex +-- Loading Lokasenna_GUI + +local lib_path = reaper.GetExtState("Lokasenna_GUI", "lib_path_v2") +if not reaper.file_exists(lib_path .. "Core.lua") or not lib_path or lib_path == "" then + local description = +[[ +Couldn't load Lokasenna_GUI library. + 1) Please install 'Lokasenna's GUI library v2 for Lua' via ReaPack + 2) Then run the 'Set Lokasenna_GUI v2 library path.lua' script in the Action List +]] + reaper.MB(description, "Error", 0) + local gui = { + error = "NoLib" + } + return gui +end +loadfile(lib_path .. "Core.lua")() do + GUI.req("Classes/Class - Label.lua")() + GUI.req("Classes/Class - Knob.lua")() + GUI.req("Classes/Class - Tabs.lua")() + GUI.req("Classes/Class - Slider.lua")() + GUI.req("Classes/Class - Button.lua")() + GUI.req("Classes/Class - Menubox.lua")() + GUI.req("Classes/Class - Textbox.lua")() + GUI.req("Classes/Class - Frame.lua")() + GUI.req("Classes/Class - Options.lua")() + GUI.req("Classes/Class - Window.lua")() +end +if missing_lib then return nil end + + +--[[===================================]]-- +--[[===================================]]-- +--[[===================================]]-- + + +------------------------------------ +-------- Functions ----------------- +------------------------------------ + + +local function fade_lbl() + -- Fade out the label + if GUI.elms.my_lbl.z == 3 then + GUI.elms.my_lbl:fade(1, 3, 6) + -- Bring it back + else + GUI.elms.my_lbl:fade(1, 3, 6, -3) + end +end + + +local function btn_click() + -- Open the Window element + GUI.elms.wnd_test:open() +end + + +local function wnd_OK() + -- Close the Window element + GUI.elms.wnd_test:close() +end + + +-- Returns a list of every element on the specified z-layer and +-- a second list of each element's values +local function get_values_for_tab(tab_num) + + -- The '+ 2' here is just to translate from a tab number to its' + -- associated z layer. More complicated scripts would have to + -- actually access GUI.elms.tabs.z_sets[tab_num] and iterate over + -- the table's contents (see the call to GUI.elms.tabs:update_sets + -- below) + local strs_v, strs_val = {}, {} + for _, tab in pairs(GUI.elms_list[tab_num + 2]) do + + strs_v[#strs_v + 1] = tab + local val = GUI.Val(tab) + if type(val) == "table" then + local strs = {} + for _, value in pairs(val) do + local str = tostring(value) + + -- For conciseness, reduce boolean values to T/F + str = str and "T" or "F" + strs[#strs + 1] = str + end + val = table.concat(strs, ", ") + end + + -- Limit the length of the returned string so it doesn't + -- spill out past the edge of the window + strs_val[#strs_val + 1] = string.len(tostring(val)) <= 35 + and tostring(val) + or string.sub(val, 1, 32) .. "..." + + end + + return strs_v, strs_val +end + + +--[[===================================]]-- +--[[===================================]]-- +--[[===================================]]-- + +--local core = require("VAF_CORE") local gui = {} +function gui:Init() + GUI.name = "Video Auto-Flipper" + + GUI.x = 0 + GUI.y = 0 + GUI.w = 432 + GUI.h = 500 + GUI.anchor = "mouse" + GUI.corner = "C" + + + --[[ + + Button z, x, y, w, h, caption, func[, ...] + Checklist z, x, y, w, h, caption, opts[, dir, pad] + Frame z, x, y, w, h[, shadow, fill, color, round] + Knob z, x, y, w, caption, min, max, default[, inc, vals] + Label z, x, y, caption[, shadow, font, color, bg] + Menubox z, x, y, w, h, caption, opts + Radio z, x, y, w, h, caption, opts[, dir, pad] + Slider z, x, y, w, caption, min, max, defaults[, inc, dir] + Tabs z, x, y, tab_w, tab_h, opts[, pad] + Textbox z, x, y, w, h[, caption, pad] + Window z, x, y, w, h, caption, z_set[, center] + + ]]-- + + + -- Elements can be created in any order you want. I find it easiest to organize them + -- by tab, or by what part of the script they're involved in. +end + +function gui:Main() + -- Prevent the user from resizing the window + if GUI.resized then + + -- If the window's size has been changed, reopen it + -- at the current position with the size we specified + local _, x, y, w, h = gfx.dock(-1,0,0,0,0) + gfx.quit() + gfx.init(GUI.name, GUI.w, GUI.h, 0, x, y) + + GUI.redraw_z[0] = true + end +end + +function gui:Setup() + ------------------------------------ + -------- General elements ---------- + ------------------------------------ + do + GUI.New("tabs", "Tabs", 1, 0, 0, 64, 20, "Stuff, Sliders, Options", 16) + GUI.New("tab_bg", "Frame", 2, 0, 0, 448, 20, false, true, "elm_bg", 0) + GUI.New("my_btn", "Button", 1, 168, 28, 96, 20, "Go!", btn_click) + GUI.New("btn_frm", "Frame", 1, 0, 56, GUI.w, 4, true, true) + + -- Telling the tabs which z layers to display + -- See Classes/Tabs.lua for more detail + GUI.elms.tabs:update_sets( + -- Tab + -- Layers + { [1] = {3}, + [2] = {4}, + [3] = {5}, + } + ) + + -- Notice that layers 1 and 2 aren't assigned to a tab; this leaves them visible + -- all the time. + end + ------------------------------------ + -------- Tab 1 Elements ------------ + ------------------------------------ + do + GUI.New("my_lbl", "Label", 3, 256, 96, "Label!", true, 1) + GUI.New("my_knob", "Knob", 3, 64, 112, 48, "Volume", 0, 11, 44, 0.25) + GUI.New("my_mnu", "Menubox", 3, 256, 176, 64, 20, "Options:", "1,2,3,4,5,6.12435213613") + GUI.New("my_btn2", "Button", 3, 256, 256, 64, 20, "Click me!", fade_lbl) + GUI.New("my_txt", "Textbox", 3, 96, 224, 96, 20, "Text:", 4) + GUI.New("my_frm", "Frame", 3, 16, 288, 192, 128, true, false, "elm_frame", 4) + + + -- We have too many values to be legible if we draw them all; we'll disable them, and + -- have the knob's caption update itself to show the value instead. + GUI.elms.my_knob.vals = false + function GUI.elms.my_knob:redraw() + GUI.Knob.redraw(self) + self.caption = self.retval .. "dB" + end + + -- Make sure it shows the value right away + GUI.elms.my_knob:redraw() + + + GUI.Val( + "my_frm", + "this is a really long string of text with no carriage returns so hopefully ".. + "it will be wrapped correctly to fit inside this frame" + ) + GUI.elms.my_frm.bg = "elm_bg" + end + ------------------------------------ + -------- Tab 2 Elements ------------ + ------------------------------------ + do + GUI.New("my_rng", "Slider", 4, 32, 128, 256, "Sliders", 0, 30, {5, 10, 15, 20, 25}) + GUI.New("my_pan", "Slider", 4, 32, 192, 256, "Pan", -100, 100, 100) + GUI.New("my_sldr", "Slider", 4, 128, 256, 128, "Slider", 0, 10, 20, 0.25, "v") + GUI.New("my_rng2", "Slider", 4, 352, 96, 256, "Vertical?", 0, 30, {5, 10, 15, 20, 25}, nil, "v") + + -- Using a function to change the value label depending on the value + GUI.elms.my_pan.output = function(val) + val = tonumber(val) + return val == 0 + and "0" + or string.format("%d%s", math.abs(val), (val < 0 and "L" or "R")) + end + end + ------------------------------------ + -------- Tab 3 Elements ------------ + ------------------------------------ + do + GUI.New("my_chk", "Checklist", 5, 32, 96, 160, 160, "Checklist:", "Alice,Bob,Charlie,Denise,Edward,Francine", "v", 4) + GUI.New("my_opt", "Radio", 5, 200, 96, 160, 160, "Options:", "Apples,Bananas,_,Donuts,Eggplant", "v", 4) + GUI.New("my_chk2", "Checklist", 5, 32, 280, 384, 64, "Whoa, another Checklist", "A,B,C,_,D,E,F,_,G,H,I", "h", 4) + GUI.New("my_opt2", "Radio", 5, 32, 364, 384, 64, "Horizontal options", "A,A#,B,C,C#,D,D#,E,F,F#,G,G#", "h", 4) + + GUI.elms.my_opt.swap = true + GUI.elms.my_chk2.swap = true + end + ------------------------------------ + -------- Subwindow and ------------- + -------- its elements ------------- + ------------------------------------ + do + GUI.New("wnd_test", "Window", 10, 0, 0, 312, 244, "Dialog Box", {9, 10}) + GUI.New("lbl_elms", "Label", 9, 16, 16, "", false, 4) + GUI.New("lbl_vals", "Label", 9, 96, 16, "", false, 4, nil, elm_bg) + GUI.New("btn_close", "Button", 9, 0, 184, 48, 24, "OK", wnd_OK) + + -- We want these elements out of the way until the window is opened + GUI.elms_hide[9] = true + GUI.elms_hide[10] = true + + -- :onopen is a hook provided by the Window class. This function will be run + -- every time the window opens. + function GUI.elms.wnd_test:onopen() + + -- :adjustelm places the element's specified x,y coordinates relative to + -- the Window. i.e. creating an element at 0,0 and adjusting it will put + -- the element in the Window's top-left corner. + self:adjustelm(GUI.elms.btn_close) + + -- Buttons look nice when they're centered. + GUI.elms.btn_close.x, _ = GUI.center(GUI.elms.btn_close, self) + + self:adjustelm(GUI.elms.lbl_elms) + self:adjustelm(GUI.elms.lbl_vals) + + -- Set the Window's title + local tab_num = GUI.Val("tabs") + self.caption = "Element values for Tab " .. tab_num + + -- This Window provides a readout of the values for every element + -- on the current tab. + local strs_v, strs_val = get_values_for_tab(tab_num) + + GUI.Val("lbl_elms", table.concat(strs_v, "\n")) + GUI.Val("lbl_vals", table.concat(strs_val, "\n")) + + end + end + + --[[==================================================]]-- + --[[==================================================]]-- + --[[==================================================]]-- + + -- Open the script window and initialize a few things + GUI.Init() + + -- Tell the GUI library to run Main on each update loop + -- Individual elements are updated first, then GUI.func is run, then the GUI is redrawn + GUI.func = self.Main + + -- How often (in seconds) to run GUI.func. 0 = every loop. + GUI.freq = 0.016 + + -- Start the main loop + GUI.Main() +end + function gui:StartGUI() + gui:Init() + gui:Setup() end return gui \ No newline at end of file diff --git a/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua b/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua index b121263..620bca6 100644 --- a/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua +++ b/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua @@ -11,17 +11,97 @@ - Flips selected items. - Has a handy GUI and other featues for ease of simple YTPMV making. +@changelog + - Init release --]] -local core = require("VAF_CORE") -local gui = require("VAF_GUI") +--[[ + TODO: Horiz Flips + TODO: Vert Flips + + TODO: Horiz+Vert alteration flips CW + TODO: Horiz+Vert alteration flips CCW + + TODO: Rotations CW + TODO: Rotations CCW + + TODO: Volume to Opacity -reaper.ShowConsoleMsg("Test") + TODO: Template Pooled Envelopes for each Item +]] + +--[==========================================]]-- +--[==========================================]]-- +--[==========================================]]-- + + +local function get_script_path() + local filename = debug.getinfo(1, "S").source:match("^@?(.+)$") + return filename:match("^(.*)[\\/](.-)$") +end +local function add_to_package_path(subpath) + package.path = subpath .. "/?.lua;" .. package.path +end +add_to_package_path(get_script_path()) + +function UndoWrap(block_name, func) + reaper.Undo_BeginBlock() + func() + reaper.Undo_EndBlock(block_name, 0) +end + +--[==========================================]]-- +--[==========================================]]-- +--[==========================================]]-- + + +local gui = require("VAF_GUI") +if gui.error then + if gui.error == "NoLib" then + return + end + reaper.MB("Something went wrong", "Error", 0) + return +end + + +_G._print = print +_G.print = function(...) + local string = "" + for _, v in pairs({...}) do + string = string .. tostring(v) .. "\t" + end + reaper.ShowConsoleMsg(string) +end + + +function TestFunction() + local item_count = reaper.CountSelectedMediaItems() + + reaper.Undo_BeginBlock() + for id = 0, item_count - 1 do + local item = reaper.GetSelectedMediaItem(0, id) + if not item then + goto TestFunction_continue + end + + local track = reaper.GetMediaItem_Track(item) + --local len = reaper.GetMediaItemInfo_Value(item, "D_LENGTH") + --print("Item: ", len) + reaper.DeleteTrackMediaItem(track, item) + + ::TestFunction_continue:: + end + reaper.Undo_EndBlock("DEKETUIB", 0) + reaper.UpdateArrange() +end function main() - + --reaper.ShowConsoleMsg("Test") + --gui:StartGUI() + UndoWrap("Test", TestFunction) end From 2769c65a6c4c6e3965f6ae373b837013446b24e7 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 17:49:51 +0300 Subject: [PATCH 02/17] - Attemt to change categories for scripts --- .../ExtendToNextItem/Zly_ExtendToNextItem.lua | 12 +----------- .../Zly_StretchToNextItem.lua | 3 ++- Items Editing/meta_ExtendToNextItem.lua | 18 ++++++++++++++++++ Items Editing/meta_StretchToNextItem.lua | 18 ++++++++++++++++++ 4 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 Items Editing/meta_ExtendToNextItem.lua create mode 100644 Items Editing/meta_StretchToNextItem.lua diff --git a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua index edd5779..745dba0 100644 --- a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua +++ b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua @@ -1,15 +1,5 @@ --[[ -@description Extend To Next Item -@author Zly -@version 1.0 -@provides - [main] . -@about - # Extend To Next Item - - - Extends selected Items to next adjacent item. -@changelog - - Init +@noindex --]] function main() diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index 63db4a6..9a03166 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,4 +1,5 @@ --[[ +@noindex @description Stretch To Next Item @author Zly @version 1.0 @@ -6,7 +7,7 @@ [main] . @about # Stretch To Next Item - + - Stretches selected Items to next adjacent item. @changelog - Init diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua new file mode 100644 index 0000000..28eddb0 --- /dev/null +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -0,0 +1,18 @@ +--[[ +Description: Extend To Next Item +Author: Zly +Metapackage: true +Provides: + [main] ExtendToNextItem/Zly_ExtendToNextItem.lua +Links: + Twitter https://twitter.com/zly_u + NAGASHIZAR https://www.youtube.com/@NAGASHIZARr +Donation: https://boosty.to/zly +About: + # Extend To Next Item + + - Extends selected Items to next adjacent item. +Version: 1.0 +Changelog: + - Init +--]] \ No newline at end of file diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem.lua new file mode 100644 index 0000000..b96c5d1 --- /dev/null +++ b/Items Editing/meta_StretchToNextItem.lua @@ -0,0 +1,18 @@ +--[[ +Description: Stretch To Next Item +Author: Zly +Metapackage: true +Provides: + [main] StretchToNextItem/Zly_StretchToNextItem.lua +Links: + Twitter https://twitter.com/zly_u + NAGASHIZAR https://www.youtube.com/@NAGASHIZARr +Donation: https://boosty.to/zly +About: + # Stretch To Next Item + + - Stretches selected Items to next adjacent item. +Version: 1.0 +Changelog: + - Init +--]] \ No newline at end of file From 574f9aa489d9fec2cd1d06be87971e9a12d40ff1 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 17:57:51 +0300 Subject: [PATCH 03/17] - attempt to fix category. --- .../StretchToNextItem/Zly_StretchToNextItem.lua | 11 ----------- Items Editing/meta_ExtendToNextItem.lua | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index 9a03166..c14ccf4 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,16 +1,5 @@ --[[ @noindex -@description Stretch To Next Item -@author Zly -@version 1.0 -@provides - [main] . -@about - # Stretch To Next Item - - - Stretches selected Items to next adjacent item. -@changelog - - Init --]] _G._print = print diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua index 28eddb0..6e1da47 100644 --- a/Items Editing/meta_ExtendToNextItem.lua +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -1,7 +1,7 @@ --[[ +Metapackage: true Description: Extend To Next Item Author: Zly -Metapackage: true Provides: [main] ExtendToNextItem/Zly_ExtendToNextItem.lua Links: From 7e355c246fc0b2c6e19414a0f34fd6cc3b6ba7e4 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 17:58:46 +0300 Subject: [PATCH 04/17] - attempt 2 --- Items Editing/meta_ExtendToNextItem.lua | 1 - Items Editing/meta_StretchToNextItem.lua | 1 - 2 files changed, 2 deletions(-) diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua index 6e1da47..e6c009d 100644 --- a/Items Editing/meta_ExtendToNextItem.lua +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -1,5 +1,4 @@ --[[ -Metapackage: true Description: Extend To Next Item Author: Zly Provides: diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem.lua index b96c5d1..96a9390 100644 --- a/Items Editing/meta_StretchToNextItem.lua +++ b/Items Editing/meta_StretchToNextItem.lua @@ -1,7 +1,6 @@ --[[ Description: Stretch To Next Item Author: Zly -Metapackage: true Provides: [main] StretchToNextItem/Zly_StretchToNextItem.lua Links: From 30133ba6a71e93052fcedeff5e06e268cee4bdf6 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:01:17 +0300 Subject: [PATCH 05/17] - attempt 2 --- Items Editing/meta_ExtendToNextItem.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua index e6c009d..670e3fe 100644 --- a/Items Editing/meta_ExtendToNextItem.lua +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -2,7 +2,8 @@ Description: Extend To Next Item Author: Zly Provides: - [main] ExtendToNextItem/Zly_ExtendToNextItem.lua + [main] . + [nomain] ExtendToNextItem/Zly_ExtendToNextItem.lua Links: Twitter https://twitter.com/zly_u NAGASHIZAR https://www.youtube.com/@NAGASHIZARr From 283251f2aaea23ca2e584cff235ff5ce6b52300b Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:02:18 +0300 Subject: [PATCH 06/17] - attempt 4 --- Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua | 3 --- Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua index 745dba0..638adb7 100644 --- a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua +++ b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua @@ -1,6 +1,3 @@ ---[[ -@noindex ---]] function main() local item_count = reaper.CountSelectedMediaItems() diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index c14ccf4..371c5e0 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,6 +1,4 @@ ---[[ -@noindex ---]] + _G._print = print _G.print = function(...) From 7c229191b6511f881344de68b4b82041b800625f Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:03:45 +0300 Subject: [PATCH 07/17] - reverted stupid shit --- .../ExtendToNextItem/Zly_ExtendToNextItem.lua | 17 +++++++++++++++++ .../Zly_StretchToNextItem.lua | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua index 638adb7..ca4dcdf 100644 --- a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua +++ b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua @@ -1,3 +1,20 @@ +--[[ +Description: Extend To Next Item +Author: Zly +Provides: + [main] . +Links: + Twitter https://twitter.com/zly_u + NAGASHIZAR https://www.youtube.com/@NAGASHIZARr +Donation: https://boosty.to/zly +About: + # Extend To Next Item + + - Extends selected Items to next adjacent item. +Version: 1.0 +Changelog: + - Init +--]] function main() local item_count = reaper.CountSelectedMediaItems() diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index 371c5e0..776e4aa 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,4 +1,20 @@ - +--[[ +Description: Stretch To Next Item +Author: Zly +Provides: + [main] . +Links: + Twitter https://twitter.com/zly_u + NAGASHIZAR https://www.youtube.com/@NAGASHIZARr +Donation: https://boosty.to/zly +About: + # Stretch To Next Item + + - Stretches selected Items to next adjacent item. +Version: 1.0 +Changelog: + - Init +--]] _G._print = print _G.print = function(...) From 181c205050823725aae10529eb899cf833fe147b Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:05:46 +0300 Subject: [PATCH 08/17] - Fuck you reapack-index --- .../ExtendToNextItem/Zly_ExtendToNextItem.lua | 23 ++++++++----------- .../Zly_StretchToNextItem.lua | 23 ++++++++----------- Items Editing/meta_ExtendToNextItem.lua | 18 --------------- Items Editing/meta_StretchToNextItem.lua | 17 -------------- 4 files changed, 20 insertions(+), 61 deletions(-) delete mode 100644 Items Editing/meta_ExtendToNextItem.lua delete mode 100644 Items Editing/meta_StretchToNextItem.lua diff --git a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua index ca4dcdf..94e81c9 100644 --- a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua +++ b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua @@ -1,21 +1,18 @@ --[[ -Description: Extend To Next Item -Author: Zly -Provides: - [main] . -Links: - Twitter https://twitter.com/zly_u - NAGASHIZAR https://www.youtube.com/@NAGASHIZARr -Donation: https://boosty.to/zly -About: - # Extend To Next Item +@description Extend To Next Item +@author Zly +@version 1.0 +@provides + [main] . +@about + # Extend To Next Item - Extends selected Items to next adjacent item. -Version: 1.0 -Changelog: - - Init +@changelog + - Init --]] + function main() local item_count = reaper.CountSelectedMediaItems() diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index 776e4aa..46b068d 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,21 +1,18 @@ --[[ -Description: Stretch To Next Item -Author: Zly -Provides: - [main] . -Links: - Twitter https://twitter.com/zly_u - NAGASHIZAR https://www.youtube.com/@NAGASHIZARr -Donation: https://boosty.to/zly -About: - # Stretch To Next Item +@description Stretch To Next Item +@author Zly +@version 1.0 +@provides + [main] . +@about + # Stretch To Next Item - Stretches selected Items to next adjacent item. -Version: 1.0 -Changelog: - - Init +@changelog + - Init --]] + _G._print = print _G.print = function(...) local string = "" diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua deleted file mode 100644 index 670e3fe..0000000 --- a/Items Editing/meta_ExtendToNextItem.lua +++ /dev/null @@ -1,18 +0,0 @@ ---[[ -Description: Extend To Next Item -Author: Zly -Provides: - [main] . - [nomain] ExtendToNextItem/Zly_ExtendToNextItem.lua -Links: - Twitter https://twitter.com/zly_u - NAGASHIZAR https://www.youtube.com/@NAGASHIZARr -Donation: https://boosty.to/zly -About: - # Extend To Next Item - - - Extends selected Items to next adjacent item. -Version: 1.0 -Changelog: - - Init ---]] \ No newline at end of file diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem.lua deleted file mode 100644 index 96a9390..0000000 --- a/Items Editing/meta_StretchToNextItem.lua +++ /dev/null @@ -1,17 +0,0 @@ ---[[ -Description: Stretch To Next Item -Author: Zly -Provides: - [main] StretchToNextItem/Zly_StretchToNextItem.lua -Links: - Twitter https://twitter.com/zly_u - NAGASHIZAR https://www.youtube.com/@NAGASHIZARr -Donation: https://boosty.to/zly -About: - # Stretch To Next Item - - - Stretches selected Items to next adjacent item. -Version: 1.0 -Changelog: - - Init ---]] \ No newline at end of file From 1a27315089ecfbe46e8a0458268e439fa1fc1346 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:08:52 +0300 Subject: [PATCH 09/17] - fucking --- .../ExtendToNextItem/Zly_ExtendToNextItem.lua | 14 ++------------ Items Editing/meta_ExtendToNextItem.lua | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 Items Editing/meta_ExtendToNextItem.lua diff --git a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua index 94e81c9..cf19f84 100644 --- a/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua +++ b/Items Editing/ExtendToNextItem/Zly_ExtendToNextItem.lua @@ -1,16 +1,6 @@ --[[ -@description Extend To Next Item -@author Zly -@version 1.0 -@provides - [main] . -@about - # Extend To Next Item - - - Extends selected Items to next adjacent item. -@changelog - - Init ---]] +@noindex +]]-- function main() diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua new file mode 100644 index 0000000..9490ca5 --- /dev/null +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -0,0 +1,14 @@ +--[[ +@metapackage +@description Extend To Next Item +@author Zly +@version 1.0 +@provides + [main] ExtendToNextItem/Zly_ExtendToNextItem.lua +@about + # Extend To Next Item + + - Extends selected Items to next adjacent item. +@changelog + - Init +--]] \ No newline at end of file From 55e8b955d7e0c29171ac22c109aa9ec0cb5b0b21 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:11:46 +0300 Subject: [PATCH 10/17] - fucking fix for this --- Items Editing/meta_StretchToNextItem.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Items Editing/meta_StretchToNextItem.lua diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem.lua new file mode 100644 index 0000000..c59331f --- /dev/null +++ b/Items Editing/meta_StretchToNextItem.lua @@ -0,0 +1,14 @@ +--[[ +@metapackage +@description Stretch To Next Item +@author Zly +@version 1.0 +@provides + [main] StretchToNextItem/Zly_StretchToNextItem.lua +@about + # Stretch To Next Item + + - Stretches selected Items to next adjacent item. +@changelog + - Init +--]] \ No newline at end of file From 3e3ee48194c8abc6056650cdb14f6d1be5ee9e8a Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:12:08 +0300 Subject: [PATCH 11/17] forgot FUCKING @noindex --- .../StretchToNextItem/Zly_StretchToNextItem.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index 46b068d..70b93ba 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,15 +1,5 @@ --[[ -@description Stretch To Next Item -@author Zly -@version 1.0 -@provides - [main] . -@about - # Stretch To Next Item - - - Stretches selected Items to next adjacent item. -@changelog - - Init +@noindex --]] From 4aabe4b91fa313b08bb0d4707613b8bfa79e4250 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:14:38 +0300 Subject: [PATCH 12/17] -- will a comment change fix it???????? --- Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua index 70b93ba..9de6e99 100644 --- a/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua +++ b/Items Editing/StretchToNextItem/Zly_StretchToNextItem.lua @@ -1,6 +1,6 @@ --[[ @noindex ---]] +]]-- _G._print = print From 675af5325856bdc2a95b09fd76376cb331b4e745 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:16:13 +0300 Subject: [PATCH 13/17] fuck you fuck you fuck you fuck you fuck you fuck you fuck you fuck you fuck you fuck you fuck you fuck you fuck you --- Items Editing/meta_StretchToNextItem.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem.lua index c59331f..fb5a0fd 100644 --- a/Items Editing/meta_StretchToNextItem.lua +++ b/Items Editing/meta_StretchToNextItem.lua @@ -4,7 +4,7 @@ @author Zly @version 1.0 @provides - [main] StretchToNextItem/Zly_StretchToNextItem.lua + [main] StretchToNextItem\Zly_StretchToNextItem.lua @about # Stretch To Next Item From 52264599f0c540d9d5da5a0e9c0ad82bbc4abbd1 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:17:20 +0300 Subject: [PATCH 14/17] ARE YOU FUCKING SERIOUS THE FUCKING SLASHES ARE WRONG IN THE PATHS FUCK OFF --- Items Editing/meta_ExtendToNextItem.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua index 9490ca5..d32700d 100644 --- a/Items Editing/meta_ExtendToNextItem.lua +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -4,7 +4,7 @@ @author Zly @version 1.0 @provides - [main] ExtendToNextItem/Zly_ExtendToNextItem.lua + [main] ExtendToNextItem\Zly_ExtendToNextItem.lua @about # Extend To Next Item From 1c1f9ddd31557582f30045ffc1a6c4d70a7b500d Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:20:53 +0300 Subject: [PATCH 15/17] - Test with barebone files --- .../{meta_ExtendToNextItem.lua => meta_ExtendToNextItem} | 4 +--- .../{meta_StretchToNextItem.lua => meta_StretchToNextItem} | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) rename Items Editing/{meta_ExtendToNextItem.lua => meta_ExtendToNextItem} (92%) rename Items Editing/{meta_StretchToNextItem.lua => meta_StretchToNextItem} (93%) diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem similarity index 92% rename from Items Editing/meta_ExtendToNextItem.lua rename to Items Editing/meta_ExtendToNextItem index d32700d..129cb0d 100644 --- a/Items Editing/meta_ExtendToNextItem.lua +++ b/Items Editing/meta_ExtendToNextItem @@ -1,4 +1,3 @@ ---[[ @metapackage @description Extend To Next Item @author Zly @@ -10,5 +9,4 @@ - Extends selected Items to next adjacent item. @changelog - - Init ---]] \ No newline at end of file + - Init \ No newline at end of file diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem similarity index 93% rename from Items Editing/meta_StretchToNextItem.lua rename to Items Editing/meta_StretchToNextItem index fb5a0fd..c2eb44e 100644 --- a/Items Editing/meta_StretchToNextItem.lua +++ b/Items Editing/meta_StretchToNextItem @@ -1,4 +1,3 @@ ---[[ @metapackage @description Stretch To Next Item @author Zly @@ -10,5 +9,4 @@ - Stretches selected Items to next adjacent item. @changelog - - Init ---]] \ No newline at end of file + - Init \ No newline at end of file From f4ce00c661dc5f842f45a562d03f91445946dbfb Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:22:39 +0300 Subject: [PATCH 16/17] - revert the dumb extension and comments --- .../{meta_ExtendToNextItem => meta_ExtendToNextItem.lua} | 4 +++- .../{meta_StretchToNextItem => meta_StretchToNextItem.lua} | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) rename Items Editing/{meta_ExtendToNextItem => meta_ExtendToNextItem.lua} (92%) rename Items Editing/{meta_StretchToNextItem => meta_StretchToNextItem.lua} (93%) diff --git a/Items Editing/meta_ExtendToNextItem b/Items Editing/meta_ExtendToNextItem.lua similarity index 92% rename from Items Editing/meta_ExtendToNextItem rename to Items Editing/meta_ExtendToNextItem.lua index 129cb0d..d32700d 100644 --- a/Items Editing/meta_ExtendToNextItem +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -1,3 +1,4 @@ +--[[ @metapackage @description Extend To Next Item @author Zly @@ -9,4 +10,5 @@ - Extends selected Items to next adjacent item. @changelog - - Init \ No newline at end of file + - Init +--]] \ No newline at end of file diff --git a/Items Editing/meta_StretchToNextItem b/Items Editing/meta_StretchToNextItem.lua similarity index 93% rename from Items Editing/meta_StretchToNextItem rename to Items Editing/meta_StretchToNextItem.lua index c2eb44e..fb5a0fd 100644 --- a/Items Editing/meta_StretchToNextItem +++ b/Items Editing/meta_StretchToNextItem.lua @@ -1,3 +1,4 @@ +--[[ @metapackage @description Stretch To Next Item @author Zly @@ -9,4 +10,5 @@ - Stretches selected Items to next adjacent item. @changelog - - Init \ No newline at end of file + - Init +--]] \ No newline at end of file From 4cae84b7ffd257931dec94b266dd78a9fea6d2e6 Mon Sep 17 00:00:00 2001 From: Zly Date: Sun, 11 Feb 2024 18:30:27 +0300 Subject: [PATCH 17/17] - attempt to fix workflow check --- Items Editing/meta_ExtendToNextItem.lua | 2 +- Items Editing/meta_StretchToNextItem.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items Editing/meta_ExtendToNextItem.lua b/Items Editing/meta_ExtendToNextItem.lua index d32700d..656343e 100644 --- a/Items Editing/meta_ExtendToNextItem.lua +++ b/Items Editing/meta_ExtendToNextItem.lua @@ -4,7 +4,7 @@ @author Zly @version 1.0 @provides - [main] ExtendToNextItem\Zly_ExtendToNextItem.lua + [main] .\ExtendToNextItem\Zly_ExtendToNextItem.lua @about # Extend To Next Item diff --git a/Items Editing/meta_StretchToNextItem.lua b/Items Editing/meta_StretchToNextItem.lua index fb5a0fd..8164ffa 100644 --- a/Items Editing/meta_StretchToNextItem.lua +++ b/Items Editing/meta_StretchToNextItem.lua @@ -4,7 +4,7 @@ @author Zly @version 1.0 @provides - [main] StretchToNextItem\Zly_StretchToNextItem.lua + [main] .\StretchToNextItem\Zly_StretchToNextItem.lua @about # Stretch To Next Item