diff options
author | garret <garret@airmail.cc> | 2021-09-07 19:54:38 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2021-09-07 19:54:38 +0100 |
commit | abb80cd9a2fa27d542c16e8ca0577b7bc96b30d7 (patch) | |
tree | 5be30b99182bd42fdbc960e3896f7d1fc236b351 | |
parent | c3668ddbcbff4ff5556996c27252693f479f8b13 (diff) | |
download | aegisub-scripts-abb80cd9a2fa27d542c16e8ca0577b7bc96b30d7.tar.gz aegisub-scripts-abb80cd9a2fa27d542c16e8ca0577b7bc96b30d7.tar.bz2 aegisub-scripts-abb80cd9a2fa27d542c16e8ca0577b7bc96b30d7.zip |
remove bad
-rw-r--r-- | blur-fade.lua | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/blur-fade.lua b/blur-fade.lua deleted file mode 100644 index 44ac316..0000000 --- a/blur-fade.lua +++ /dev/null @@ -1,45 +0,0 @@ -script_name="Blur Fade" -script_description="Makes fade with blur." -script_author="garret" -script_version="2021-04-06" -include("utils.lua") - --- TODO: add proper fade as well - -function l(i) - aegisub.log(i) - aegisub.log("\n") -end -- for debugging - -function make_lines(sub, sel, i, fill, bord, shad) - local line=sub[sel[i]] - line.effect = "" - local text = line.text - local fill_layer = util.copy(line) -- copy - local bord_layer = util.copy(line) -- the - local shad_layer = util.copy(line) -- line - fill_layer.layer=2 -- set - bord_layer.layer=1 -- correct - shad_layer.layer=0 -- layers - fill_layer.text = fill..fill_layer.text.." {fill}" -- add - bord_layer.text = bord..bord_layer.text.." {bord}" -- the - shad_layer.text = shad..shad_layer.text.." {shad}" -- tags - sub[sel[i]] = fill_layer -- put - sub.insert(sel[i]+1,bord_layer) -- in - sub.insert(sel[i]+2,shad_layer) -- script -end - -function main(sub, sel) -- TODO: make code less shit - for i=#sel,1,-1 do - local line=sub[sel[i]] - if line.effect == "blurin" then - -- make_lines(sub, sel, i, "in fill ", "in bord ", "in shad ") - make_lines(sub, sel, i, "{\\blur100\\bord0\\shad0\\t(\\blur0)}", "{\\blur100\\t(\\blur0)\\1a&FF&\\3a&FF&\\shad0.01}", "{\\blur100\\shad1.5\\1aFF\\bord0\\t(\\blur0)}") - elseif line.effect == "blurout" then - -- make_lines(sub, sel, i, "out fill ", "out bord ", "out shad ") - make_lines(sub, sel, i, "{\\bord0\\shad0\\t(\\blur100)}", "{\\t(\\blur100)\\1a&FF&\\3a&FF&\\shad0.01}", "{\\shad1.5\\1aFF\\bord0\\t(\\blur100)}") - end - end - aegisub.set_undo_point(script_name) -end -aegisub.register_macro(script_name, script_description, main) |