TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[SAI]018_sekaiichihatsukoiOP
[打印本页]
作者:
saiyaku
时间:
2011-10-22 19:03:04
标题:
[SAI]018_sekaiichihatsukoiOP
預覽:
http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview
from tcaxPy import *
def tcaxPy_Init():
# Tips: initialize your global variables here
global _FontSize
global pyFont
_FontSize = GetVal(val_FontSize)
pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
def tcaxPy_Main(_I, _J, _N, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
ASS_BUF = [] # used for saving raw TCS FX data
COLOR=[ "0000FF", "0080FF","00FFFF","00FF00","FF0000","FFFF00","800080" ]
for i in range(60):
ass_main(ASS_BUF, SubL(_BT-8+_J*5,_BT+_J*5+42,60),mov(_X+randint(-20,20),_Y+randint(-20,20),_X+30+randint(-40,80),_Y+randint(-50,50))+fad(50,300)+color1('FFFFFF')+color3("8B76F1")+alpha3(200)+bord(0.5)+blur(2)+frz(45), '{\\p3}m 0 100 l 1 1 100 0 1 -1 0 -100 -1 -1 -100 0 -1 1 c m 6 6 s 6 -6 -6 -6 -6 6 c')
ass_main(ASS_BUF, SubL(_BT+_J*5,_ET+10,10),fad(10,100)+pos(_X,_Y)+bord(5)+color3("8B76F1")+blur(4)+alpha1(255),_TXT)
ass_main(ASS_BUF, SubL(_BT+_J*5,_ET+10,20),fad(10,100)+pos(_X,_Y)+color1("FFFFFF")+shad(1.2),_TXT)
if _I < 9:
ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+bord(5)+blur(6)+color1('FFFFFF')+color3('8B76F1')+alpha4(255)+shad(2), _TXT)
ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
for i in range(_BT+_SK-5,_BT+_SK+_KT,18):
for j in range (10):
R = RandCir2(_X, _Y, 30, 60)
ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 50+ randint(-10,10),1), mov(_X,_Y,R[0],R[1])+fad(40,200)+color1('FFFFFF')+color3(COLOR[randint(0,6)])+alpha3(100)+bord(2)+blur(2)+fscx(60)+fscy(60)+frz(randint(-360,360)), '{\\p2}m 20 0 b 20 10 30 20 40 20 b 30 20 20 30 20 40 b 20 30 10 20 0 20 b 10 20 20 10 20 0')
else:
for i in range(_BT+_SK-5,_BT+_SK+_KT,8):
ass_main(ASS_BUF, SubL(i,i+4,30),pos(_X,_Y)+bord(5)+blur(6)+color1('FFFFFF')+color3('8B76F1')+alpha4(255)+shad(2), _TXT)
ass_main(ASS_BUF, SubL(i,i+4,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
ass_main(ASS_BUF, SubL(i,i+4,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
for i in range(_BT+_SK-5,_BT+_SK+_KT,15):
for j in range (20):
R = RandCir2(_X, _Y, 30, 80)
ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 50+ randint(-10,10),1), mov(_X,_Y,R[0],R[1])+fad(40,200)+color1('FFFFFF')+color3(COLOR[randint(0,6)])+alpha3(100)+bord(2)+blur(2)+fscx(80)+fscy(80)+t(frx(randint(-360,360))+fry(randint(-360,360))+frz(randint(-360,360))), '{\\p2}m 20 0 b 20 10 30 20 40 20 b 30 20 20 30 20 40 b 20 30 10 20 0 20 b 10 20 20 10 20 0')
return (ASS_BUF,None)
def tcaxPy_Fin():
# Tips: finalize your global variables here
FinFont(pyFont)
复制代码
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2