- UID
- 794
- 积分
- 1720
- 帖子
- 61
- 主题
- 7
- 论坛币
- 782
- 威望
- 13
- EP值
- 479
- MP值
- 38
- 阅读权限
- 50
- 注册时间
- 2012-11-17
- 在线时间
- 86 小时
- 最后登录
- 2023-4-3
|
zxdfcgv 发表于 2013-6-8 18:57
在AEGISUB的文件夹中,请按照以下路径寻找一个lua脚本 - -- Automation 4 demo script
- -- Macro that adds \be1 tags in front of every selected line
- script_name = "Add edgeblur macro"
- script_description = "A demo macro showing how to do simple line modification in Automation 4"
- script_author = "Niels Martin Hansen"
- script_version = "1"
- function add_edgeblur(subtitles, selected_lines, active_line)
- for z, i in ipairs(selected_lines) do
- local l = subtitles[i]
- l.text = "{\\be1}" .. l.text
- subtitles[i] = l
- end
- aegisub.set_undo_point("Add edgeblur")
- end
- aegisub.register_macro("Add edgeblur", "Adds \\be1 tags to all selected lines", add_edgeblur)
复制代码 打开后是这个样子……
改下第13行的{\\be1}就能添加其它标签了? |
|