diff options
author | garret <garret@airmail.cc> | 2022-08-05 02:45:25 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2022-08-05 02:45:25 +0100 |
commit | 509d6e951858192c624c2aec7b3bcbededb4c7ec (patch) | |
tree | 4ec43cfc1d707ab629c7348f786a7e815de4f34e /macros/garret.order-layers.lua | |
parent | 84915e385937b3c2af67972840290a3ce4545678 (diff) | |
download | aegisub-scripts-509d6e951858192c624c2aec7b3bcbededb4c7ec.tar.gz aegisub-scripts-509d6e951858192c624c2aec7b3bcbededb4c7ec.tar.bz2 aegisub-scripts-509d6e951858192c624c2aec7b3bcbededb4c7ec.zip |
remove a few old, bad, and/or useless scripts
I'm sure there are better layer orderers out there.
I'm not a typesetter, so I'll never actually use mine enough that I fix the glaring issues.
I don't even remember what inverse glow was for any more
Diffstat (limited to 'macros/garret.order-layers.lua')
-rw-r--r-- | macros/garret.order-layers.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/macros/garret.order-layers.lua b/macros/garret.order-layers.lua deleted file mode 100644 index 1454e73..0000000 --- a/macros/garret.order-layers.lua +++ /dev/null @@ -1,34 +0,0 @@ -script_name = "Order layers" -script_description = "puts each selected line on its own layer so they don't clash" -script_author = "garret" -script_version = "1.0.1" -script_namespace = "garret.order-layers" - -local haveDepCtrl, DependencyControl, depctrl = pcall(require, "l0.DependencyControl") -if haveDepCtrl then - depctrl = DependencyControl { - --feed="TODO", - } -end - -local function main(sub, sel) - local i = 0 - local last_start, last_end - for si,li in ipairs(sel) do - line = sub[li] - if line.start_time == last_start or line.end_time == last_end or si == 1 then - line.layer = i - i = i + 1 - end - last_start = line.start_time - last_end = line.end_time - sub[li] = line - end - aegisub.set_undo_point(script_name) -end - -if haveDepCtrl then - depctrl:registerMacro(main) -else - aegisub.register_macro(script_name, script_description, main) -end |