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

 找回密码
 新人加入
查看: 4893|回复: 0
打印 上一主题 下一主题

[完整特效] [SAI]013_freezingOP [复制链接]

Administrator

Shanzhai Pro.

Rank: 7Rank: 7Rank: 7

跳转到指定楼层
楼主
发表于 2011-10-22 18:32:33 |只看该作者 |正序浏览
預覽: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, _X, _Y, _A, _TXT):
  3.     ASS_BUF = []        # used for saving ASS FX lines

  4.    
  5.     ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,49),fad(300,300)+pos(_X+1,_Y+1)+alpha1(120) + color1("000000") + blur(1) , _TXT)
  6.     ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,50),fad(300,300)+pos(_X,_Y)+alpha1(0) + color1("FFFFFF"), _TXT)
  7.     ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,51),fad(300,300)+pos(_X+2,_Y+2)+alpha1(35) + color1("1B1B1B")+ blur(1) , _TXT)


  8.     if _I > 5:
  9.         ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,60),pos(_X,_Y)+alpha1(255) + color1("FFFFFF")+bord(2)+blur(6), _TXT)
  10.         for i in range(7):
  11.             for j in range(_BT+_SK,_BT+_SK+_KT,3):
  12.                 ass_main(ASS_BUF, SubL(j,j+2,60),mov(_X,_Y,_X+randint(-1,1),_Y+randint(-1,1))+alpha1(170) + color1("FFFFFF")+bord(0)+blur(1), _TXT)

  13.         if _I > 5 and _I < 9:

  14.             for i in range(_BT+_SK,_BT+_SK+_KT,25):
  15.                 for j in range (7):
  16.                     R = [_X+randint(40,120),_Y+randint(-30,-15)]
  17.                     ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 70+ randint(-10,10),30), mov(_X+randint(-10,10),_Y-randint(0,10),R[0],R[1])+fad(40,200)+ alpha3(30)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')

  18.         else:

  19.             for i in range(_BT+_SK,_BT+_SK+_KT,15):
  20.                 for j in range (15):
  21.                     R = RandCir2(_X, _Y, 30, 40)
  22.                     ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 50+ randint(-10,10),30), mov(_X,_Y,R[0],R[1])+fad(40,200)+ alpha3(30)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')   

  23.    
  24.    

  25.     else:
  26.         ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,60),pos(_X,_Y)+alpha1(255) + color1("FFFFFF")+bord(2)+blur(6), _TXT)



  27.         for i in range(5):
  28.             R = [_X+randint(0,40),_Y+randint(-30,30)]
  29.             R2 = [_X+randint(40,80),_Y+randint(-30,30)]
  30.             rnd = randint(-10,10)
  31.             ass_main(ASS_BUF, SubL(_BT+_SK+randint(0,10),_BT+_SK+60+rnd,70), fad(100,0)+mov(_X,_Y,R[0],R[1])+fad(40,300)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0)+t1(0,_KT*10,frx(randint(30,180))+fry(randint(30,180))+frz(randint(30,180))),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')   
  32.             ass_main(ASS_BUF, SubL(_BT+_SK+60+rnd,_BT+_SK+120+rnd,70), mov(R[0],R[1],R2[0],R2[1])+fad(40,300)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0)+t1(0,_KT*10,frx(randint(30,180))+fry(randint(30,180))+frz(randint(30,180))),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')   

  33.             ass_main(ASS_BUF, SubL(_BT+_SK+120+rnd,_BT+_SK+180+randint(0,10),70),fad(0,200)+ mov(R2[0],R2[1],_X+120+randint(0,10),_Y+randint(-30,30))+fad(40,300)+bord(1.5)+blur(2.5)+fsc(100,100)+color3("FF0000")+color1("FFFFFF")+shad(0)+t1(0,_KT*10,frx(randint(30,180))+fry(randint(30,180))+frz(randint(30,180))),'{\p1}m 0 0 l 1 0 1 1 0 1{\p0}')   





  34.     return (ASS_BUF, None)
复制代码
1

查看全部评分

您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-25 10:05

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH