TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
Aegisub 特效字幕模板:逐字淡入淡出(卡拉OK版+转场版)
[打印本页]
作者:
Seekladoom
时间:
2021-5-8 20:13:09
标题:
Aegisub 特效字幕模板:逐字淡入淡出(卡拉OK版+转场版)
本帖最后由 Seekladoom 于 2022-1-25 21:02 编辑
Aegisub 特效字幕模板:逐字淡入淡出(卡拉OK版+转场版).rar
(0 Bytes, 下载次数: 2152)
2021-6-30 17:38:12 上传
下载次数: 2152
备份下载地址
备份1:
伪射手网
备份2:
SUBHD
备份3:
字幕库
备份4:
github
卡拉OK版
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title:
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 1920
PlayResY: 1080
ScaledBorderAndShadow: no
Video Aspect Ratio: 0
Video Zoom: 6
[Aegisub Project Garbage]
Video File: ?dummy:23.976000:120000:1920:1080:120:120:120:
Video AR Value: 1.777778
Video Zoom Percent: 0.375000
Active Line: 5
Video Position: 187
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Comment-furigana,更纱黑体 SC Semibold,35,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: Default-furigana,更纱黑体 SC Semibold,35,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: Default,更纱黑体 SC Semibold,70,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
Style: Comment,更纱黑体 SC Semibold,70,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:00.00,Comment,-----template行-----,0,0,0,,
Comment: 2,0:00:00.00,0:00:00.00,Default,,0,0,0,template char noblank,!retime("start2syl",($si-1)*30-200,0)!{\an5\pos($center,$middle)\1c&H000000&\3c&HFFFFFF&\blur2\fad(200,0)}
Comment: 2,0:00:00.00,0:00:00.00,Default,,0,0,0,template char noblank,!retime("syl",0,0)!{\an5\pos($center,$middle)\blur2\1c&H000000&\3c&HFFFFFF&\t(0,$sdur,\1c&HFFFFFF&\3c&H000000&)}
Comment: 2,0:00:00.00,0:00:00.00,Default,,0,0,0,template char noblank,!retime("syl2end",0,($si-1)*30+200)!{\an5\pos($center,$middle)\1c&HFFFFFF&\3c&H000000&\blur2\fad(0,200)}
Dialogue: 0,0:00:00.00,0:00:00.00,Comment,-----K值行-----,0,0,0,,
Comment: 0,0:00:01.00,0:00:06.00,Default,,0,0,0,karaoke,{\k36}透{\k36}过{\k36}特{\k36}效{\k36}字{\k36}幕{\k36}给{\k36}观{\k36}众{\k36}传{\k36}达{\k36}爱{\k36} {\k36}Aegisub
复制代码
转场版
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title:
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 1920
PlayResY: 1080
ScaledBorderAndShadow: no
Video Aspect Ratio: 0
Video Zoom: 6
[Aegisub Project Garbage]
Video File: ?dummy:23.976000:120000:1920:1080:120:120:120:
Video AR Value: 1.777778
Video Zoom Percent: 0.375000
Active Line: 4
Video Position: 24
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Comment-furigana,更纱黑体 SC Semibold,35,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: Default-furigana,更纱黑体 SC Semibold,35,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: Default,更纱黑体 SC Semibold,70,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
Style: Comment,更纱黑体 SC Semibold,70,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:00.00,Comment,-----template行-----,0,0,0,,
Comment: 2,0:00:00.00,0:00:00.00,Default,,0,0,0,template char noblank,!retime("line",($si-1)*30-200,-$syln*30)!{\an5\pos($center,$middle)\blur3\fad(200,0)}
Comment: 2,0:00:00.00,0:00:00.00,Default,,0,0,0,template char noblank,!retime("line",$ldur-$syln*30,($si-$syln)*30+200)!{\an5\pos($center,$middle)\blur3\fad(0,200)}
Dialogue: 0,0:00:00.00,0:00:00.00,Comment,-----K值行-----,0,0,0,,
Comment: 0,0:00:01.00,0:00:06.00,Default,,0,0,0,karaoke,{\k36}透{\k36}过{\k36}特{\k36}效{\k36}字{\k36}幕{\k36}给{\k36}观{\k36}众{\k36}传{\k36}达{\k36}爱{\k36} {\k36}Aegisub
复制代码
附件:
Aegisub 特效字幕模板:逐字淡入淡出(卡拉OK版+转场版).rar
(2021-6-30 17:38:12, 0 Bytes) / 下载次数 2152
http://tcax.org/forum.php?mod=attachment&aid=MjY0NXwwYWI5Y2IxZHwxNzMyMjI0MzIzfDB8MA%3D%3D
作者:
Seekladoom
时间:
2022-1-25 11:31:24
本帖最后由 Seekladoom 于 2022-1-25 12:03 编辑
TCAX的淡入淡出特效(此处有py脚本中整体拆分单词的方法):
http://www.tcax.org/forum.php?mod=viewthread&tid=526
↑↑↑↑↑不直接使用tcc文件将英文词汇进行拆分的方法↑↑↑↑↑
作者:
Seekladoom
时间:
2022-3-17 02:43:08
本帖最后由 Seekladoom 于 2022-3-17 02:55 编辑
PyonFX 单行文本测试(逐字淡入淡出).rar
(2.64 KB, 下载次数: 1467)
2022-3-17 02:51:37 上传
下载次数: 1467
PyonFX的逐字淡入淡出:
from pyonfx import *
io = Ass("CN.ass")
meta, styles, lines = io.get_data()
def CN(line, l):
# Translation Effect
for syl in Utils.all_non_empty(line.chars):
l.layer = 0
l.start_time = line.start_time - 200 + (syl.i*30)
l.end_time = line.end_time + 200 + (syl.i*30)
l.text = "{\\an5\\pos(%.f,%.f)\\fad(200,200)}%s" % (syl.center, syl.middle, syl.text)
io.write_line(l)
# Generating lines
for line in lines:
if line.styleref.alignment > -1:
CN(line, line.copy())
io.save()
io.open_aegisub()
复制代码
附件:
PyonFX 单行文本测试(逐字淡入淡出).rar
(2022-3-17 02:51:37, 2.64 KB) / 下载次数 1467
http://tcax.org/forum.php?mod=attachment&aid=MjkyNXwwYjUzZDljMnwxNzMyMjI0MzIzfDB8MA%3D%3D
作者:
Seekladoom
时间:
2022-3-17 03:08:34
本帖最后由 Seekladoom 于 2022-3-17 03:27 编辑
写法对比(
逐字淡入淡出
):
TCAX
from tcaxPy import *
def tcaxPy_Init():
pass
def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
ASS_BUF = [] # 保存ASS特效
ass_main(ASS_BUF,SubL(_BT - 20 + _n * 30,_ET + 20 + _n * 30, 1),an(5)+pos(_X,_Y)+fad(200,200), _TXT)
return (ASS_BUF,None)
复制代码
P
yonFX
from pyonfx import *
io = Ass("CN.ass")
meta, styles, lines = io.get_data()
def CN(line, l):
# Translation Effect
for syl in Utils.all_non_empty(line.chars):
l.layer = 0
l.start_time = line.start_time - 200 + (syl.i*30)
l.end_time = line.end_time + 200 + (syl.i*30)
l.text = "{\\an5\\pos(%.f,%.f)\\fad(200,200)}%s" % (syl.center, syl.middle, syl.text)
io.write_line(l)
# Generating lines
for line in lines:
if line.styleref.alignment > -1:
CN(line, line.copy())
io.save()
io.open_aegisub()
复制代码
作者:
yjucg
时间:
2023-3-18 20:31:43
谢楼主了!
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2