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

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

[完整特效] [SAI]018_sekaiichihatsukoiOP [复制链接]

Administrator

Shanzhai Pro.

Rank: 7Rank: 7Rank: 7

跳转到指定楼层
楼主
发表于 2011-10-22 19:03:04 |只看该作者 |倒序浏览
預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview
  1. from tcaxPy import *


  2. def tcaxPy_Init():
  3.     # Tips: initialize your global variables here
  4.     global _FontSize
  5.     global pyFont
  6.     _FontSize = GetVal(val_FontSize)
  7.     pyFont    = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)

  8. def tcaxPy_Main(_I, _J, _N, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
  9.     ASS_BUF = []        # used for saving raw TCS FX data


  10.     COLOR=[ "0000FF", "0080FF","00FFFF","00FF00","FF0000","FFFF00","800080" ]
  11.                
  12.     for i in range(60):
  13.         ass_main(ASS_BUF, SubL(_BT-8+_J*5,_BT+_J*5+42,60),mov(_X+randint(-20,20),_Y+randint(-20,20),_X+30+randint(-40,80),_Y+randint(-50,50))+fad(50,300)+color1('FFFFFF')+color3("8B76F1")+alpha3(200)+bord(0.5)+blur(2)+frz(45), '{\\p3}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')


  14.     ass_main(ASS_BUF, SubL(_BT+_J*5,_ET+10,10),fad(10,100)+pos(_X,_Y)+bord(5)+color3("8B76F1")+blur(4)+alpha1(255),_TXT)

  15.     ass_main(ASS_BUF, SubL(_BT+_J*5,_ET+10,20),fad(10,100)+pos(_X,_Y)+color1("FFFFFF")+shad(1.2),_TXT)


  16.     if _I < 9:
  17.         ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+bord(5)+blur(6)+color1('FFFFFF')+color3('8B76F1')+alpha4(255)+shad(2), _TXT)
  18.         ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
  19.         ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
  20.         for i in range(_BT+_SK-5,_BT+_SK+_KT,18):
  21.             for j in range (10):
  22.                 R = RandCir2(_X, _Y, 30, 60)
  23.                 ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 50+ randint(-10,10),1), mov(_X,_Y,R[0],R[1])+fad(40,200)+color1('FFFFFF')+color3(COLOR[randint(0,6)])+alpha3(100)+bord(2)+blur(2)+fscx(60)+fscy(60)+frz(randint(-360,360)), '{\\p2}m 20 0  b  20 10  30 20  40 20  b  30 20  20 30  20 40  b  20 30  10 20  0 20  b  10 20  20 10  20 0')   


  24.     else:
  25.         for i in range(_BT+_SK-5,_BT+_SK+_KT,8):
  26.             ass_main(ASS_BUF, SubL(i,i+4,30),pos(_X,_Y)+bord(5)+blur(6)+color1('FFFFFF')+color3('8B76F1')+alpha4(255)+shad(2), _TXT)
  27.             ass_main(ASS_BUF, SubL(i,i+4,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)
  28.             ass_main(ASS_BUF, SubL(i,i+4,30),pos(_X,_Y)+bord(0)+blur(3)+color1('FFFFFF')+color3('FFFFFF')+alpha4(255)+shad(2), _TXT)




  29.         for i in range(_BT+_SK-5,_BT+_SK+_KT,15):
  30.             for j in range (20):
  31.                 R = RandCir2(_X, _Y, 30, 80)
  32.                 ass_main(ASS_BUF, SubL( i+ randint(0,10), i + 50+ randint(-10,10),1), mov(_X,_Y,R[0],R[1])+fad(40,200)+color1('FFFFFF')+color3(COLOR[randint(0,6)])+alpha3(100)+bord(2)+blur(2)+fscx(80)+fscy(80)+t(frx(randint(-360,360))+fry(randint(-360,360))+frz(randint(-360,360))), '{\\p2}m 20 0  b  20 10  30 20  40 20  b  30 20  20 30  20 40  b  20 30  10 20  0 20  b  10 20  20 10  20 0')   


  33.     return (ASS_BUF,None)


  34. def tcaxPy_Fin():
  35.     # Tips: finalize your global variables here
  36.     FinFont(pyFont)
复制代码
1

查看全部评分

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

GitHub|TCAX 主页

GMT+8, 2024-12-4 16:25

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH