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

 找回密码
 新人加入
查看: 2635|回复: 1
打印 上一主题 下一主题

Aegisub上一行和下一行的時間怎麼取得 [复制链接]

Rank: 4

跳转到指定楼层
楼主
发表于 2011-10-16 03:45:58 |只看该作者 |倒序浏览
如題 想找上一行字幕和下一行字幕的開始和結束時間
Aegisub的內建參數沒有line.prev.start_time和line.prev.end_time的用法之類的

請問該時間怎麼取得

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 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.


您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-4-19 22:30

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH