TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[youkaze]007_AnotherED
[打印本页]
作者:
四月一日 君寻
时间:
2012-2-23 22:13:43
标题:
[youkaze]007_AnotherED
本帖最后由 七海の游风 于 2012-2-24 11:00 编辑
from tcaxPy import *
def tcaxPy_Init():
global _FontFileName
global _FaceID
global _Fs
global _FD
global _Height
global _Font
global _FontSize
global pyFont
pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
_FontSize = GetVal(val_FontSize)
_FontFileName = GetVal(val_FontFileName)
_FaceID = GetVal(val_FaceID)
_Fs = GetVal(val_FontSize)
_FD = 1000 / GetVal(val_FXFPS)
_Height = GetVal(val_TextHeight)
_Font = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
def tcaxPy_Fin():
FinFont(_Font)
def fsc(x):
X = randint(0,x)
return fscx(X)+fscy(X)
def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT,):
ASS_BUF = []
COLOR=[ "0096FF", "2F3649","3A2220","41BAFF","0E54A3","268CBB","151588" ]
COLOR1=color1(COLOR[randint(0,6)])
dx = _X - int(_A / 2 + 0.5)
dy = _Y - int(_Fs / 2 + 0.5)
mask = TextOutlineDraw(_Font, _TXT, dx, dy)
ass_main(ASS_BUF, SubL(_BT-20-8+_j*5,_BT+(_j+1)*5),pos(_X-2,_Y+1)+bord(0)+fad(200,0)+alpha1(50)+color1('000000')+blur(3), _TXT)
ass_main(ASS_BUF, SubL(_BT+(_j+1)*5,_BT+_SK),pos(_X-2,_Y+1)+bord(0)+alpha1(50)+color1('000000')+blur(3), _TXT)
ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT),pos(_X-2,_Y+1)+bord(0)+alpha1(50)+color1('000000')+blur(3), _TXT)
ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET+20-8+_j*5),pos(_X-2,_Y+1)+bord(0)+fad(0,200)+alpha1(50)+color1('000000')+blur(3), _TXT)
if _i > -1 and _i < 4:
R = RandCir2(_X, _Y, 10, 11)
ass_main(ASS_BUF, SubL(_BT-20-8+_j*5,_ET-8+_j*5),an(5) + pos(_X, _Y)+color('FFFFFF')+ bord(0)+fad(200,200)+blur(0)+ alpha1(0)+fs(100)+ clip2(7, mask), "●")
ass_main(ASS_BUF, SubL(_BT+_SK-20, _BT+_SK+_KT),an(5) + pos(R[0],R[1])+COLOR1+ bord(0)+blur(7)+ alpha1(100)+fs(1)+t(fs(45))+clip2(7, mask), "●")
ass_main(ASS_BUF, SubL(_BT+_SK+_KT, _ET),an(5) + pos(R[0],R[1])+COLOR1+ bord(0)+blur(7)+ alpha1(100)+fs(45)+clip2(7, mask), "●")
ass_main(ASS_BUF, SubL(_ET, _ET+20-8+_j*5),an(5) + pos(R[0],R[1])+COLOR1+ bord(0)+blur(7)+ alpha1(100)+fs(45)+t(fs(1))+clip2(7, mask), "●")
for i in range(_BT+_SK-20,_BT+_SK+_KT,30):
for k in range(3):
ass_main(ASS_BUF, SubL(i, i+150,50), an(7)+fsc(190+randint(-20,20))+bord(0)+blur(2)+COLOR1+fad(30,300)+mov(R[0]+randint(-10,10),R[1]+randint(-10,10),_X-60-randint(30,60),_Y+20+randint(50,70))+frz(0)+t(frz(randint(-360,360))), "{\p3}m 3 9 b -2 1 -7 -7 2 -12 b 14 1 0 4 3 9 {\p0}")
if _i > 3:
R = RandCir2(_X, _Y, 10, 11)
ass_main(ASS_BUF, SubL(_BT-20-8+_j*5,_ET-8+_j*5),an(5) + pos(_X, _Y)+color('FFFFFF')+ bord(0)+fad(200,200)+blur(0)+ alpha1(0)+fs(100)+ clip2(7, mask), "●")
ass_main(ASS_BUF, SubL(_BT+_SK-20, _BT+_SK+_KT),an(5) + pos(R[0],R[1])+color1('0900B8')+ bord(0)+blur(7)+ alpha1(120)+fs(1)+t(fs(45))+clip2(7, mask), "●")
ass_main(ASS_BUF, SubL(_BT+_SK+_KT, _ET),an(5) + pos(R[0],R[1])+color1('0900B8')+ bord(0)+blur(7)+ alpha1(120)+fs(45)+clip2(7, mask), "●")
ass_main(ASS_BUF, SubL(_ET, _ET+20-8+_j*5),an(5) + pos(R[0],R[1])+color1('0900B8')+ bord(0)+blur(7)+ alpha1(120)+fs(45)+t(fs(1))+clip2(7, mask), "●")
for i in range(_BT+_SK-20,_BT+_SK+_KT,30):
for k in range(3):
ass_main(ASS_BUF, SubL(i, i+150,50), an(7)+fsc(190+randint(-20,20))+bord(0)+blur(2)+color1('0900B8')+fad(30,300)+mov(R[0]+randint(-10,10),R[1]+randint(-10,10),_X-60-randint(30,60),_Y+20+randint(50,70))+frz(0)+t(frz(randint(-360,360))), "{\p3}m 3 9 b -2 1 -7 -7 2 -12 b 14 1 0 4 3 9 {\p0}")
return (ASS_BUF, None)
复制代码
115下载预览:
http://115.com/file/dpl1xe4l
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2