卡拉OK模版执行器是一个Aegisub自带的自动化脚本。它的主要目的是帮助你使用特别设计的模版语言来制作卡拉OK特效。卡拉OK模版执行器已随Aegisub安装并可以使用。
计划制作更多教程,并补完上面的教程。
也请看一下Automation/Lua/Modules/karaskel.lua,有更多关于line
和syl
变量的内容,以及其他内容。
译者注:从2.x或是3.x版本入门的用户可以无视下面这块……
如果你已用过1.10版本的Aegisub的 multi-template 脚本,你应该了解在卡拉OK模版执行器中的几个类似的概念,但也有几个不同的地方。其中的一些是:
template
外的更多的东西放到那里。请阅读上面的教程来获得介绍,或者你觉得你能看懂的话可以参考下面的内容。!$start+$i*30!
代替 %$start+$i*30%
。A
不再使用, 但是 line
、syl
可以直接使用。两种lua code在其自己的环境中分别运行,所以, 模板中lua代码和Karaoke Templater之间冲突的可能性更小。return false
hack to cancel execution of a template no longer works.
Neither does having multi-statement Lua blocks and returning from them in
general. For the first purpose the fxgroup
functionality has been
introduced, and for your multi-statement needs code lines have been
introduced.newline
and line
(for being-generated and
original line) you now work with line
and orgline
for being-generated and
original lines.retime
function has been introduced to make it much easier to control
the start and end times of your generated lines.