TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[内置特效EXT]火焰效果test
[打印本页]
作者:
milkyjing
时间:
2011-9-1 17:09:09
标题:
[内置特效EXT]火焰效果test
说明
感谢X大提供源代码(C#)
此效果出处:
http://u.115.com/file/e60g9ugh#
[X]010_MAD_Shakugan_no_shana.mkv
附件为预览及脚本下载
移植过来的py脚本, (TCAX内置特效兼容)
################################################################################
### description:
### fire test script, incomplete
from tcaxPy import *
def tcaxPy_Init():
global _FD # frame duration, in millisecond
global _Fs
global Font
global fire_str
_FD = 1000 / GetVal(val_FXFPS)
_Fs = GetVal(val_FontSize)
Font = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
fire_str = ('{\\p5}m 0 0 b 8 1 9 -28 -2 -41 b 3 -23 -17 0 0 0{\\p0}',
'{\\p5}m 1 41 b 20 39 1 13 13 -11 b 5 1 -18 22 1 41{\\p0}',
'{\\p4}m 6 39 b 4 29 1 13 27 -37 b -1 -3 -15 34 6 39{\\p0}',
'{\\p5}m -3 43 b -9 22 -1 33 16 -47 b 1 3 -17 0 -3 43{\\p0}')
def tcaxPy_Fin():
FinFont(Font)
time_gap = 1 # you can change this value to 0, or 2 or any other number
time_fac = 1 # you can change this value to 0, or 2 or any other number
def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
ASS_BUF = [] # used for saving ASS FX lines
TCAS_BUF = [] # used for saving TCAS FX raw data
ts = _start + _j * time_fac * _FD / 10 - time_gap * _FD / 10
te = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10 - 30
count = int(te - ts)
step = int(_FD / 10)
PIX = TextPix(Font, _txt)
points = PixPoints(PIX)
pt_num = len(points)
dx = _x - int(_a / 2 + 0.5) + PIX[0][0]
dy = _y - int(_Fs / 2 + 0.5) + PIX[0][1]
for i in range(0, count, step):
pt = points[randint(0, pt_num - 1)]
t0 = randint(int(ts), int(te))
t1 = t0 + 30
tmpz = randint(0, 359)
tmpstr = fire_str[randint(0, 3)]
x = dx + pt[0]
y = dy + pt[1]
EFT = move(x, y, x, y - 25) + \
alpha1(100) + color1('3F7EF6') + alpha3(150) + color3('3F7EF6') + \
bord(3) + blur(3) + frz(tmpz) + t(fsc(80, 80) + bord(1) + fry(361) + frz(-57)) + fad(0, 200)
ass_main(ASS_BUF, SubL(t0, t1, 10, Pix_Style), EFT, tmpstr)
return (ASS_BUF, TCAS_BUF)
复制代码
附件: [预览]
preview.mp4
(2011-9-1 17:11:09, 293.21 KB) / 下载次数 3437
http://tcax.org/forum.php?mod=attachment&aid=MzZ8MWFhOWFjMTl8MTczMjI5NDExNXwwfDA%3D
附件: [脚本]
ext_fire.py
(2011-9-1 17:12:03, 2.15 KB) / 下载次数 2858
http://tcax.org/forum.php?mod=attachment&aid=Mzd8MDNiYzdhMWV8MTczMjI5NDExNXwwfDA%3D
作者:
huajiang5200
时间:
2017-8-16 14:53:30
附件无法查取,论坛崩了??
作者:
huajiang5200
时间:
2017-8-16 23:03:05
下载不了咋整
作者:
dormant
时间:
2017-9-10 23:12:55
的飒飒发 繁琐撒撒
图片附件:
2.jpg
(2017-9-10 23:12:50, 154.17 KB) / 下载次数 20
http://tcax.org/forum.php?mod=attachment&aid=MjA5OXw5NWQ2MjE3MXwxNzMyMjk0MTE1fDB8MA%3D%3D
作者:
dormant
时间:
2017-9-10 23:13:59
2017-9-10 23:13:53 上传
下载附件
(154.17 KB)
图片附件:
hy+yjh.jpg
(2017-9-10 23:13:53, 154.17 KB) / 下载次数 5
http://tcax.org/forum.php?mod=attachment&aid=MjEwMHwwNTFlNTU5ZXwxNzMyMjk0MTE1fDB8MA%3D%3D
作者:
CMD
时间:
2018-1-30 14:08:42
https://pan.baidu.com/s/1i6iHh1z
脚本链接
作者:
CMD
时间:
2018-1-30 14:12:34
特效表现方式为ext,其实在ext文件夹里面就有了
作者:
CMD
时间:
2018-1-30 14:12:48
改个文件名就可以了
作者:
sdy623
时间:
2019-7-31 17:09:26
谢谢分享。
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2