TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[SAI]013_freezingOP
[打印本页]
作者:
saiyaku
时间:
2011-10-22 18:32:33
标题:
[SAI]013_freezingOP
預覽:
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 = [] # used for saving ASS FX lines
ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,49),fad(300,300)+pos(_X+1,_Y+1)+alpha1(120) + color1("000000") + blur(1) , _TXT)
ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,50),fad(300,300)+pos(_X,_Y)+alpha1(0) + color1("FFFFFF"), _TXT)
ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,51),fad(300,300)+pos(_X+2,_Y+2)+alpha1(35) + color1("1B1B1B")+ blur(1) , _TXT)
if _I > 5:
ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,60),pos(_X,_Y)+alpha1(255) + color1("FFFFFF")+bord(2)+blur(6), _TXT)
for i in range(7):
for j in range(_BT+_SK,_BT+_SK+_KT,3):
ass_main(ASS_BUF, SubL(j,j+2,60),mov(_X,_Y,_X+randint(-1,1),_Y+randint(-1,1))+alpha1(170) + color1("FFFFFF")+bord(0)+blur(1), _TXT)
if _I > 5 and _I < 9:
for i in range(_BT+_SK,_BT+_SK+_KT,25):
for j in range (7):
R = [_X+randint(40,120),_Y+randint(-30,-15)]
ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 70+ randint(-10,10),30), mov(_X+randint(-10,10),_Y-randint(0,10),R[0],R[1])+fad(40,200)+ alpha3(30)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')
else:
for i in range(_BT+_SK,_BT+_SK+_KT,15):
for j in range (15):
R = RandCir2(_X, _Y, 30, 40)
ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 50+ randint(-10,10),30), mov(_X,_Y,R[0],R[1])+fad(40,200)+ alpha3(30)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')
else:
ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,60),pos(_X,_Y)+alpha1(255) + color1("FFFFFF")+bord(2)+blur(6), _TXT)
for i in range(5):
R = [_X+randint(0,40),_Y+randint(-30,30)]
R2 = [_X+randint(40,80),_Y+randint(-30,30)]
rnd = randint(-10,10)
ass_main(ASS_BUF, SubL(_BT+_SK+randint(0,10),_BT+_SK+60+rnd,70), fad(100,0)+mov(_X,_Y,R[0],R[1])+fad(40,300)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0)+t1(0,_KT*10,frx(randint(30,180))+fry(randint(30,180))+frz(randint(30,180))),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')
ass_main(ASS_BUF, SubL(_BT+_SK+60+rnd,_BT+_SK+120+rnd,70), mov(R[0],R[1],R2[0],R2[1])+fad(40,300)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0)+t1(0,_KT*10,frx(randint(30,180))+fry(randint(30,180))+frz(randint(30,180))),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')
ass_main(ASS_BUF, SubL(_BT+_SK+120+rnd,_BT+_SK+180+randint(0,10),70),fad(0,200)+ mov(R2[0],R2[1],_X+120+randint(0,10),_Y+randint(-30,30))+fad(40,300)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0)+t1(0,_KT*10,frx(randint(30,180))+fry(randint(30,180))+frz(randint(30,180))),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')
return (ASS_BUF, None)
复制代码
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2