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

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

[完整特效] [lun]007_呼び捨てファンタジ [复制链接]

Moderator

疯子

Rank: 5Rank: 5

跳转到指定楼层
楼主
发表于 2012-3-2 22:01:23 |只看该作者 |倒序浏览
  1. from tcaxPy import *


  2. def tcaxPy_Init():
  3.     global _FD                   # frame duration, in millisecond
  4.     global _Fs
  5.     global pyFont
  6.     _FD = 1000 / GetVal(val_FXFPS)
  7.     _Fs = GetVal(val_FontSize)
  8.     pyFont    = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)

  9. def fr(x):
  10.     X = randint(0,x)
  11.     return frz(X)+frx(X)+fry(X)

  12. def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
  13.     ASS_BUF  = []        # used for saving ASS FX lines
  14.    
  15.     if _i < 7:
  16.         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)
  17.         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)
  18.         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)
  19.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT), an(5)+pos(_X,_Y)+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2),_TXT)
  20.         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)
  21.         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)
  22.     if _i > 6 and _i < 14:
  23.         for j in range(15):
  24.             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)
  25.             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)
  26.         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)
  27.         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)
  28.         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)
  29.         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)
  30.     if _i > 13 and _i < 20:
  31.         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)
  32.         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)
  33.         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)
  34.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT), an(5)+pos(_X,_Y)+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2),_TXT)
  35.         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)
  36.         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)
  37.     if _i > 19 and _i < 26:
  38.         for j in range(10):
  39.             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}")
  40.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT), an(5)+pos(_X,_Y)+color3("CCCCCC")+color1("FFFFFF")+be(8)+blur(2),_TXT)
  41.         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)
  42.         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)
  43.     if _i > 25 and _i < 28:
  44.         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)
  45.         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)
  46.         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)
  47.         for j in range(10):
  48.             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}")
  49.         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)
  50.         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)
  51.         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)
  52.         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)
  53.     if _i > 27 and _i < 35:
  54.         for j in range(15):
  55.             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)
  56.             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)
  57.         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)
  58.         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)
  59.         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)
  60.         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)
  61.     if _i > 34:
  62.         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)
  63.         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)
  64.         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)
  65.         for j in range(10):
  66.             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}")
  67.         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)
  68.         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)
  69.         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)
  70.         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)
  71.    
  72.         
  73.         
  74.    

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

查看全部评分

Rank: 1

沙发
发表于 2012-5-5 21:37:40 |只看该作者
天呐,好多啊......忽忽,渣渣什么也看不懂~
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-22 01:57

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH