TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

标题: [SAI]007_sekirei2OP [打印本页]

作者: saiyaku    时间: 2011-10-22 18:53:17     标题: [SAI]007_sekirei2OP

預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview
  1. from tcaxPy import *

  2. # def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _7X, _7Y, _X, _Y, _A, _W, _H, _TXT, _J, _N):  # 早期版本使用, 用最新版则忽略本行
  3. def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):

  4.     ASS_BUF = []                # 用于保存ASS特效



  5.     ass_main(ASS_BUF,SubL(_BT-15+_j*5,_BT+(_j+1)*5),blur(5)+ pos(_X, _Y)+fry(90)+t1(0,200,fry(0)), _TXT)
  6.     ass_main(ASS_BUF, SubL(_BT+(_j+1)*5,_BT+_SK),blur(5)+ pos(_X, _Y), _TXT)
  7.    
  8.     ass_main(ASS_BUF, SubL(_BT+_SK+_KT, _ET),blur(5)+ pos(_X, _Y), _TXT)
  9.     for j in range(8):
  10.         ass_main(ASS_BUF, SubL(_ET, _ET+50),an(7)+fad(0,500)+bord(0)+color1("FFFFFF")+frz(randint(-180,180))+t1(0,500,frz(randint(-180,180)))+mov(_X,_Y,_X+randint(-50,50),_Y+randint(-50,50)),"{\p1}m 12 -15 b 12 -12 11 -10 9 -7 9 -6 9 -5 9 -4 11 -5 11 -3 8 -3 l 9 -2 6 -1 5 0 3 -2 b -3 12 -20 11 -25 6 -26 5 -25 3 -23 3 -20 3 -9 5 2 -3 l -1 -4 b -1 -6 1 -6 2 -6 2 -7 1 -8 1 -9 2 -9 4 -8 5 -8 4 -10 4 -12 5 -11 6 -11 6 -9 7 -8 9 -10 10 -13 10 -16 c{\p0}")
  11.     if _i <8:
  12.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT),an(7)+pos(_X,_Y+30)+frx(78)+alpha1(255)+alpha3(82)+be(1)+color3("FFFFFF")+bord(2)+fscx(0)+fscy(0)+t1(0,_KT*10,fscx(100)+fscy(100)+bord(6))+fad(0,_KT*10),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
  13.         ass_main(ASS_BUF,SubL(_BT+_SK+20,_BT+_SK+_KT+20),an(7)+pos(_X,_Y+30)+frx(78)+alpha1(255)+alpha3(82)+be(1)+color3("FFFFFF")+bord(2)+fscx(0)+fscy(0)+t1(0,_KT*10,fscx(100)+fscy(100)+bord(6))+fad(0,_KT*10),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
  14.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+20),blur(5)+t1(0,100,mov(_X,_Y,_X,_Y+5)+color1("760DE3"))+t1(100,200,mov(_X,_Y+5,_X,_Y)+color1("FFE0FF")),_TXT)
  15.         ass_main(ASS_BUF,SubL(_BT+_SK+20,_BT+_SK+_KT),blur(5)+pos(_X,_Y),_TXT)
  16.     if _i >7:
  17.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,1),pos(_X,_Y)+blur(5)+t1(0,_KT*10,bord(3)),_TXT)
  18.         for i in range(20):
  19.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,2),an(7)+fscx(120)+fscy(120)+mov(_X+randint(-20,20),_Y+randint(-20,20),_X+randint(-50,50),_Y+randint(-50,50))+color1("FFFFFF")+bord(1)+blur(8)+color3("760DE3")+shad(0)+fad(0,300)+be(1)+t1(0,(_KT/8),alpha1(0))+t1((_KT/8),(_KT/8)*2,alpha1(96))+t1((_KT/8)*2,(_KT/8)*3,alpha1(0))+t1((_KT/8)*3,(_KT/8)*4,alpha1(96))+t1((_KT/8)*4,(_KT/8)*5,alpha1(0))+t1((_KT/8)*5,(_KT/8)*6,alpha1(96))+t1((_KT/8)*6,(_KT/8)*7,alpha1(0))+t1((_KT/8)*7,(_KT/8)*8,alpha1(96)),"{\p4}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{\p0}")
  20.            


  21.     return (ASS_BUF, None)               
复制代码





欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://www.tcax.org/) Powered by Discuz! X2