TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[SAI]014_leveleOP
[打印本页]
作者:
saiyaku
时间:
2011-10-22 18:36:17
标题:
[SAI]014_leveleOP
預覽:
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
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)
POS = pos(_X, _Y)
C = DivClr( "FFFFFF","000000", _A+15)
if _I < 14 :
A = randint(0,_A+2)
for i in range(_A + 2):
CM = color1(C[abs(A-i+randint(-10,10))])
CLIP = clip(int(_X-_A/2 - 1-100), int(_Y-_A/2 + i - 1), int(_X-_A/2 + 1 + _A+100),int( _Y-_A/2 + i))
M = t1(0,50,mov(_X,_Y,_X+randint(-4,4),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-4,4),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-4,4),_Y))
ass_main(ASS_BUF, SubL(_BT-20, _BT+_SK),fad(200,0)+CLIP +POS +bord(0)+ CM , _TXT)
ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET), POS +CLIP +bord(0)+ CM , _TXT)
for k in range(_BT+_SK,_BT+_SK+_KT,20):
ass_main(ASS_BUF, SubL(k,k+20), M +CLIP+bord(0)+ CM , _TXT)
if i % 5 == 0 or i%5 == 1 or i%5 == 2:
for j in range(1):
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP +mov(_X,_Y,_X+randint(40,70),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(140)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP + mov(_X,_Y,_X+randint(-70,-40),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(140)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
else:
for j in range(1):
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP +mov(_X,_Y,_X+randint(40,70),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(200)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP + mov(_X,_Y,_X+randint(-70,-40),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(200)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
else:
A = randint(0,_A+2)
for i in range(_A + 2):
CM = color1(C[abs(A-i+randint(-10,10))])
CLIP = clip(int(_X-_A/2 - 1-100), int(_Y-_A/2 + i - 1), int(_X-_A/2 + 1 + _A+100),int( _Y-_A/2 + i))
M = t1(0,50,mov(_X,_Y,_X+randint(-4,4),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-4,4),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-4,4),_Y))
ass_main(ASS_BUF, SubL(_BT-20, _ET),fad(200,0)+CLIP +POS +bord(0)+ CM , _TXT)
if i % 5 == 0 or i%5 == 1 or i%5 == 2:
for j in range(1):
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP +mov(_X,_Y,_X+randint(40,70),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(140)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP + mov(_X,_Y,_X+randint(-70,-40),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(140)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
else:
for j in range(1):
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP +mov(_X,_Y,_X+randint(40,70),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(200)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
ass_main(ASS_BUF, SubL(_ET+j*3,_ET+50+randint(-5,5),0),CLIP + mov(_X,_Y,_X+randint(-70,-40),_Y)+fad(0,300)+blur(3)+blur(10)+alpha1(200)+color1("FFFFFF")+color3("FFFFFF")+shad(0)+fscx(300), _TXT)
return (ASS_BUF, None)
复制代码
作者:
5231251
时间:
2011-12-20 16:28:26
未定义错误!
2011-12-20 16:28:23 上传
下载附件
(43.49 KB)
图片附件:
global c.jpg
(2011-12-20 16:28:23, 43.49 KB) / 下载次数 1815
http://tcax.org/forum.php?mod=attachment&aid=MTY1fDUzMTU2NGU2fDE3MzIyNTY3MjR8MHww
作者:
milkyjing
时间:
2011-12-20 16:53:50
5231251 发表于 2011-12-20 16:28
未定义错误!
这个...我也不清楚C具体是啥, 大概是改脚本时误删了, 等saiyaku吧...
作者:
saiyaku
时间:
2011-12-20 23:15:50
嗯 少兩行代碼
POS = pos(_X, _Y)
C = DivClr( "FFFFFF","000000", _A+15)
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2