TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[lun]007_呼び捨てファンタジ
[打印本页]
作者:
渣渣疯子
时间:
2012-3-2 22:01:23
标题:
[lun]007_呼び捨てファンタジ
from tcaxPy import *
def tcaxPy_Init():
global _FD # frame duration, in millisecond
global _Fs
global pyFont
_FD = 1000 / GetVal(val_FXFPS)
_Fs = GetVal(val_FontSize)
pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
def fr(x):
X = randint(0,x)
return frz(X)+frx(X)+fry(X)
def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
ASS_BUF = [] # used for saving ASS FX lines
if _i < 7:
ass_main(ASS_BUF,SubL(_BT+_SK-50,_BT+_SK-20), an(5)+move(_X,_Y-60,_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-20,_BT+_SK-10), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,50))+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-10,_BT+_SK), an(5)+pos(_X,_Y)+fsc(130,50)+animation(fsc(100,100))+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT), an(5)+pos(_X,_Y)+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-10,1), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_ET-10,_ET,1), an(5)+pos(_X,_Y)+animation(fsc(130,130))+fad(0,100)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
if _i > 6 and _i < 14:
for j in range(15):
ass_main(ASS_BUF,SubL(_BT-50+_j*5+j,_BT+_j*5+j,15-j), an(5)+move(_X+100,_Y,_X,_Y)+alpha1(255-(_n-_j)*5)+alpha3(180)+fad(500,0)+be(30)+animation(be(10))+color3("97521E")+color1("FFFFFF")+bord(1), _TXT)
ass_main(ASS_BUF,SubL(_ET-50-(_n-_j)*5+j,_ET-(_n-_j)*5+j,15-j), an(5)+move(_X,_Y,_X-100,_Y)+alpha1(255-(_n-_j)*5)+alpha3(180)+fad(500,0)+be(30)+animation(be(10))+color3("97521E")+color1("FFFFFF")+bord(1), _TXT)
ass_main(ASS_BUF,SubL(_BT+_j*5,_BT+_SK,20), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT/2,20), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,130))+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT/2,_BT+_SK+_KT,20), an(5)+pos(_X,_Y)+fsc(130,130)+animation(fsc(100,100))+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-50-(_n-_j)*5,20), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
if _i > 13 and _i < 20:
ass_main(ASS_BUF,SubL(_BT+_SK-50,_BT+_SK-20), an(5)+move(_X,_Y-60,_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-20,_BT+_SK-10), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,50))+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-10,_BT+_SK), an(5)+pos(_X,_Y)+fsc(130,50)+animation(fsc(100,100))+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT), an(5)+pos(_X,_Y)+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-10,1), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_ET-10,_ET,1), an(5)+pos(_X,_Y)+animation(fsc(130,130))+fad(0,100)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
if _i > 19 and _i < 26:
for j in range(10):
ass_main(ASS_BUF,SubL(_BT-30,_BT+_SK),an(2)+color("CCCCCC")+fscx(50)+fscy(60)+move(_X+randint(-20,-20),_Y+randint(-20,20),_X-randint(-50,50),_Y-randint(-50,50))+t(fsc(100,120))+be(1)+fad(200,300)+bord(0),"{\p3}m 20 0 b 9 0 0 8 0 20 b 0 31 9 39 20 39 b 32 39 41 31 41 20 b 41 8 32 0 20 0 l 20 6 b 23 6 25 5 26 2 b 35 5 39 12 39 20 b 39 27 35 33 31 34 b 31 31 24 29 20 29 b 16 29 10 31 10 34 b 6 33 2 27 1 20 b 1 12 7 5 15 2 b 15 5 18 6 20 6 {\p0}")
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT), an(5)+pos(_X,_Y)+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-10,1), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_ET-10,_ET,1), an(5)+pos(_X,_Y)+animation(fsc(130,130))+fad(0,100)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
if _i > 25 and _i < 28:
ass_main(ASS_BUF,SubL(_BT+_SK-50,_BT+_SK-20), an(5)+move(_X,_Y-60,_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-20,_BT+_SK-10), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,50))+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-10,_BT+_SK), an(5)+pos(_X,_Y)+fsc(130,50)+animation(fsc(100,100))+color3("97521E")+color1("FFFFFF")+be(3)+blur(2), _TXT)
for j in range(10):
ass_main(ASS_BUF,SubL(_BT+_SK,_ET),an(2)+color("CCCCCC")+fscx(50)+fscy(60)+move(_X+randint(-20,-20),_Y+randint(-20,20),_X-randint(-50,50),_Y-randint(-50,50))+t(fsc(100,120))+be(1)+fad(200,300)+bord(0),"{\p3}m 20 0 b 9 0 0 8 0 20 b 0 31 9 39 20 39 b 32 39 41 31 41 20 b 41 8 32 0 20 0 l 20 6 b 23 6 25 5 26 2 b 35 5 39 12 39 20 b 39 27 35 33 31 34 b 31 31 24 29 20 29 b 16 29 10 31 10 34 b 6 33 2 27 1 20 b 1 12 7 5 15 2 b 15 5 18 6 20 6 {\p0}")
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT/2), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,130))+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT/2,_BT+_SK+_KT), an(5)+pos(_X,_Y)+fsc(130,130)+animation(fsc(100,100))+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-10,1), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_ET-10,_ET,1), an(5)+pos(_X,_Y)+animation(fsc(130,130))+fad(0,100)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
if _i > 27 and _i < 35:
for j in range(15):
ass_main(ASS_BUF,SubL(_BT-50+_j*5+j,_BT+_j*5+j,15-j), an(5)+move(_X+100,_Y,_X,_Y)+alpha1(255-(_n-_j)*5)+alpha3(180)+fad(500,0)+be(30)+animation(be(10))+color3("97521E")+color1("FFFFFF")+bord(1), _TXT)
ass_main(ASS_BUF,SubL(_ET-50-(_n-_j)*5+j,_ET-(_n-_j)*5+j,15-j), an(5)+move(_X,_Y,_X-100,_Y)+alpha1(255-(_n-_j)*5)+alpha3(180)+fad(500,0)+be(30)+animation(be(10))+color3("97521E")+color1("FFFFFF")+bord(1), _TXT)
ass_main(ASS_BUF,SubL(_BT+_j*5,_BT+_SK,20), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT/2,20), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,130))+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT/2,_BT+_SK+_KT,20), an(5)+pos(_X,_Y)+fsc(130,130)+animation(fsc(100,100))+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-50-(_n-_j)*5,20), an(5)+pos(_X,_Y)+color3("97521E")+color1("FFFFFF")+be(3)+blur(2),_TXT)
if _i > 34:
ass_main(ASS_BUF,SubL(_BT+_SK-50,_BT+_SK-20), an(5)+move(_X,_Y-60,_X,_Y)+alpha3(255)+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-20,_BT+_SK-10), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,50))+alpha3(255)+color1("FFFFFF")+be(3)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK-10,_BT+_SK), an(5)+pos(_X,_Y)+fsc(130,50)+animation(fsc(100,100))+alpha3(255)+color1("FFFFFF")+be(3)+blur(2), _TXT)
for j in range(10):
ass_main(ASS_BUF,SubL(_BT+_SK,_ET),an(2)+color("CCCCCC")+fscx(50)+fscy(60)+move(_X+randint(-20,-20),_Y+randint(-20,20),_X-randint(-50,50),_Y-randint(-50,50))+t(fsc(100,120))+be(1)+fad(200,300)+bord(0),"{\p3}m 20 0 b 9 0 0 8 0 20 b 0 31 9 39 20 39 b 32 39 41 31 41 20 b 41 8 32 0 20 0 l 20 6 b 23 6 25 5 26 2 b 35 5 39 12 39 20 b 39 27 35 33 31 34 b 31 31 24 29 20 29 b 16 29 10 31 10 34 b 6 33 2 27 1 20 b 1 12 7 5 15 2 b 15 5 18 6 20 6 {\p0}")
ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT/2), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(130,130))+alpha3(255)+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT/2,_BT+_SK+_KT), an(5)+pos(_X,_Y)+fsc(130,130)+animation(fsc(100,100))+alpha3(255)+color1("FFFFFF")+be(8)+blur(2), _TXT)
ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-10,1), an(5)+pos(_X,_Y)+alpha3(255)+color1("FFFFFF")+be(3)+blur(2),_TXT)
ass_main(ASS_BUF,SubL(_ET-10,_ET,1), an(5)+pos(_X,_Y)+animation(fsc(130,130))+fad(0,100)+alpha3(255)+color1("FFFFFF")+be(3)+blur(2),_TXT)
return (ASS_BUF,None)
复制代码
作者:
lxx173
时间:
2012-5-5 21:37:40
天呐,好多啊......忽忽,渣渣什么也看不懂~
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2