TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[SAI]042_shingekinokyojinED2
[打印本页]
作者:
saiyaku
时间:
2014-4-14 22:35:55
标题:
[SAI]042_shingekinokyojinED2
預覽:
http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview
from tcaxPy import *
def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
ASS_BUF = [] # 保存ASS特效
TCAS_BUF = [] # 保存TCAS特效
ts = _BT + _SK-10
te = _ET
if _i%2==0:
x=getpos(_i,_j,1)[0]
y=getpos(_i,_j,1)[1]
else:
x=getpos(_i,_j,3)[0]
y=getpos(_i,_j,3)[1]
for k in range(0,_ET-_BT,4):
if _ET-_BT-k <= 4:
ass_main(ASS_BUF, SubL(_BT+k,_ET+_j%2*20+20+randint(-15,15),10), pos(x+randint(-3,3) , y+randint(-3,3))+fad(0,400) +bord(1.5) +blur(2)+shad(1), _TXT)
elif k==0:
ass_main(ASS_BUF, SubL(_BT-_j%2*20-20+k+randint(-15,15),_BT+k+4,10), pos(x+randint(-3,3) , y+randint(-3,3) ) +fad(400,0) +bord(1.5) +blur(2)+shad(1), _TXT)
else:
ass_main(ASS_BUF, SubL(_BT+k,_BT+k+4,10), pos(x+randint(-3,3) , y+randint(-3,3) ) +bord(1.5)+blur(2) +shad(1), _TXT)
for i in range(0,_KT,4):
ass_main(ASS_BUF, SubL(ts+i,_BT+_SK+20+i,100-i/4), pos(x , y ) +t(fsc(175,175))+fad(0,_KT*10) +alpha(i)+bord(1.5)+blur(2), _TXT)
return (ASS_BUF,None)
复制代码
作者:
呆萌呆萌の沦丧
时间:
2014-4-15 20:27:22
群邮看到,感谢大大分享
作者:
heyiwu215
时间:
2014-6-12 09:59:41
久没上来了,特来感谢大大的分享
作者:
iceorange
时间:
2014-6-22 03:53:18
好长。。。
作者:
玩具
时间:
2016-4-2 22:14:36
请问如何载入getpos函数...
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2