TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

标题: Aegisub上一行和下一行的時間怎麼取得 [打印本页]

作者: 影kage    时间: 2011-10-16 03:45:58     标题: Aegisub上一行和下一行的時間怎麼取得

如題 想找上一行字幕和下一行字幕的開始和結束時間
Aegisub的內建參數沒有line.prev.start_time和line.prev.end_time的用法之類的

請問該時間怎麼取得
作者: milkyjing    时间: 2011-10-16 10:11:52

嘛, 因为本人只用Aegisub打过K, 所以具体如何也说不上, 不过帮你RTFM(查资料)了一下.

可能的做法是 (感觉你是对的, 只不过他们本身不是内建参数):
  1. line.prev.start_time
  2. line.next.end_time
复制代码
line.start_time, line.end_time - Start and end times of the line in milliseconds.


Added fields for linked list access, only available when using the Classic Advanced skeleton:

line.prev, line.next - Access the dialogue line before and after this one. These might be nil on the first/last dialogue lines. Blank lines, style lines, header lines etc. are not included in this linked list.


具体可参考Aegisub Manual
http://docs.aegisub.org/manual/A ... lua#Data_structures

可能相关的链接:
http://docs.aegisub.org/manual/K ... ecution_environment
http://docs.aegisub.org/manual/K ... de_lines_and_blocks


p.s.
The code execution environment contains a few variables pointing to the current line and syllable structure being processed, as well as some more supporting tables. These are just references to the structures produced by karaskel and are not modified in any way.







欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/) Powered by Discuz! X2