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

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

[完整特效] [SAI]047_prismaillya2weiED [复制链接]

Administrator

Shanzhai Pro.

Rank: 7Rank: 7Rank: 7

跳转到指定楼层
楼主
发表于 2014-8-7 20:32:57 |只看该作者 |倒序浏览
預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview
  1. from util.gdiFont import *
  2. from tcaxPy import *
  3. from s import *

  4. def tcaxPy_Init():
  5.     global _FontFileName
  6.     global _FaceID
  7.     global _Fs
  8.     global _Height
  9.     global Font
  10.     global GdiFont
  11.     global GdiFont2
  12.     _FontFileName = GetVal(val_FontFileName)
  13.     _FaceID       = GetVal(val_FaceID)
  14.     _Fs           = GetVal(val_FontSize)
  15.     _Height       = GetVal(val_TextHeight)
  16.     Font = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
  17.     GdiFont = gfInitFont(GetVal(val_FontFaceName), _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0, False)  
  18.     GdiFont2 = gfInitFont(GetVal(val_FontFaceName), 20, GetVal(val_Spacing), GetVal(val_SpaceScale), 0, False)  

  19. def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):

  20.     ASS_BUF = []

  21.     clr3 = "4C2A7E"

  22.     #小字處理

  23.     if _i == 13  :
  24.         ts = _BT + _SK-15
  25.         te = ts + _KT
  26.         dx2 = getposX(3,8) +3+ _j*(getposX(3,12) -getposX(3,8)-20)/5
  27.         dy2= _Y - int(_Fs / 2 + 0.5) -_Fs+10
  28.         tx = int((getBT(4)-15-_ET)/13)
  29.         outline = gfGetOutline(GdiFont2, _TXT, dx2, dy2)
  30.         ass_main(ASS_BUF, SubL(ts, _ET+(_n-_j)*tx,10), an(7)+fad(150,100) + pos(_X, _Y-_Fs/2)+color3("FEAFFD")+bord(15)+blur(8) + clip2(4, outline), "{\p1}m -20 1 l 20 1 l 20 0 l -20 0{\p0}")
  31.         ass_main(ASS_BUF, SubL(ts, _ET+(_n-_j)*tx,4), an(7)+fad(150,100) + pos(0, 0) + bord(2.5)+color3(clr3)+p(4),outline )
  32.         ass_main(ASS_BUF, SubL(ts, _ET+(_n-_j)*tx,3), an(7)+fad(150,100) + pos(0, 0) + bord(4)+blur(4)+color3("FEAFFD")+p(4),outline )

  33.     dx1 = _X - int(_A / 2 + 0.5)   
  34.     dy1 = _Y - int(_Fs / 2 + 0.5)  

  35.     outline = gfGetOutline(GdiFont, _TXT, dx1, dy1)

  36.     if _i < 13:

  37.         #main
  38.         
  39.         tx = int((getBT(_i+1)-15-_ET)/_n)
  40.         if _i == 12 or _i == 0:
  41.             tx = 0

  42.         ts = _BT + _SK-15
  43.         te = ts + _KT

  44.         ass_main(ASS_BUF, SubL(ts, _ET+(_n-_j)*tx,10), an(7)+fad(150,100) + pos(_X, _Y-_Fs/2)+color3("FEAFFD")+bord(15)+blur(8) + clip2(4, outline), "{\p1}m -20 1 l 20 1 l 20 0 l -20 0{\p0}")
  45.         ass_main(ASS_BUF, SubL(ts, _ET+(_n-_j)*tx,4), an(7)+fad(150,100) + pos(0, 0) + bord(2.5)+color3(clr3)+p(4),outline )
  46.         ass_main(ASS_BUF, SubL(ts, _ET+(_n-_j)*tx,3), an(7)+fad(150,100) + pos(0, 0) + bord(4)+blur(4)+color3("FEAFFD")+p(4),outline )


  47.         #sapphire


  48.         t1 = ts

  49.         t2 = te
  50.         t3 = 0
  51.         global oriX
  52.         global angle
  53.         if _j == _n-1:
  54.             oriX = _X +_Fs
  55.         elif _j == 0:
  56.             _X = _X -_Fs
  57.             oriX = getposX(_i,_j+1)
  58.         else:
  59.             oriX = getposX(_i,_j+1)
  60.         if _j == 0:
  61.             angle = 0


  62.         EFT =  an(7) + mov(_X, _Y,oriX,_Y) + fry(angle)+t(fry(angle+5*_KT))+ bord(1)+color3("000000") + fsc(120,120)
  63.         ass_main(ASS_BUF, SubL(t1, t2,2),EFT +color1("645A5C")+p(4),"m 98 20 b 98 20 98 20 98 20 b 98 20 98 20 98 20 b 117 22 128 32 136 40 b 132 46 125 51 119 52 b 124 59 126 68 126 76 b 121 81 115 84 108 86 b 110 94 110 103 107 111 b 87 113 67 104 49 88 b 69 77 97 50 99 20  m -98 21 b -96 45 -69 81 -49 90 b -64 103 -84 112 -107 112 b -110 104 -109 95 -107 86 b -113 85 -119 81 -125 75 b -124 68 -121 59 -118 53 b -124 51 -132 47 -138 40 b -125 30 -112 24 -98 21" )

  64.         ass_main(ASS_BUF, SubL(t1, t2,2), EFT +color1("B5725E")+p(4),"m 60 -79 b 76 -113 102 -158 139 -185 b 165 -146 165 -88 162 -46 b 177 -25 187 0 192 23 b 165 31 130 33 98 30 b 107 -5 101 -49 60 -79  m 128 -136 b 117 -132 122 -115 134 -118 b 146 -121 142 -140 128 -136 m 132 -81 b 118 -76 125 -57 139 -62 b 150 -67 144 -83 132 -81 m 147 -18 b 132 -9 145 8 157 0 b 167 -5 162 -22 147 -18 m -62 -82 b -83 -115 -103 -150 -146 -179 b -149 -181 -151 -184 -155 -183 b -176 -131 -172 -79 -166 -40 b -178 -21 -186 6 -190 28 b -160 35 -131 32 -102 26 b -108 -23 -97 -56 -62 -82 m -141 -134 b -130 -134 -130 -119 -140 -117 b -150 -117 -153 -132 -141 -134 m -142 -79 b -131 -81 -125 -66 -135 -61 b -144 -56 -155 -72 -143 -78 m -154 -15 b -142 -18 -139 -4 -145 0 b -151 7 -167 -7 -153 -15" )

  65.         ass_main(ASS_BUF, SubL(t1, t2,2), EFT +color1("8BF5FF")+p(4),"m 1 -105 b -54 -105 -104 -63 -104 0 b -104 71 -54 105 1 105 b 48 105 106 70 106 0 b 106 -69 49 -105 1 -105 m 1 -95 b 48 -95 94 -56 96 0 b 95 55 49 93 1 95 b -44 96 -91 63 -94 0 b -89 -64 -53 -91 1 -95" )

  66.         ass_main(ASS_BUF, SubL(t1, t2,2), EFT +color1("FFFFFF")+p(4),"m 0 -90 b 63 -88 91 -32 91 2 b 89 51 55 89 -1 92 b -43 91 -87 66 -91 1 b -91 -42 -62 -89 0 -90 m -1 -90 m -1 -76 b -60 -76 -81 -24 -78 2 b -72 58 -34 79 0 80 b 40 77 77 47 78 2 b 77 -46 43 -76 -1 -76" )
  67.         ass_main(ASS_BUF, SubL(t1, t2,2), EFT +color1("8BF5FF")+p(4),"m 3 -73 b 15 -63 24 -51 29 -41 b 43 -41 54 -38 67 -35 b 65 -19 61 -8 54 4 b 60 16 63 26 65 39 b 56 43 40 45 27 46 b 19 56 10 66 1 75 b -10 67 -19 58 -27 47 b -39 46 -51 42 -63 38 b -61 26 -57 13 -53 1 b -59 -11 -63 -24 -65 -36 b -52 -40 -38 -42 -23 -44 b -16 -52 -8 -62 3 -73" )


  68.         angle += 5*_KT

  69.         #出場

  70.         if _j == _n-1 and _i < 12 and _i != 0:
  71.             t3 = getBT(_i+1)-15

  72.             EFT =  an(7) + mov(oriX, _Y,getposX(_i+1,0)-_Fs,_Y) + fry(angle%360+((t3-t2)//30)*360)+t(fry(0))+ bord(1)+color3("000000") + fsc(120,120)
  73.             ass_main(ASS_BUF, SubL(t2, t3,2),EFT +color1("645A5C")+p(4),"m 98 20 b 98 20 98 20 98 20 b 98 20 98 20 98 20 b 117 22 128 32 136 40 b 132 46 125 51 119 52 b 124 59 126 68 126 76 b 121 81 115 84 108 86 b 110 94 110 103 107 111 b 87 113 67 104 49 88 b 69 77 97 50 99 20  m -98 21 b -96 45 -69 81 -49 90 b -64 103 -84 112 -107 112 b -110 104 -109 95 -107 86 b -113 85 -119 81 -125 75 b -124 68 -121 59 -118 53 b -124 51 -132 47 -138 40 b -125 30 -112 24 -98 21" )

  74.             ass_main(ASS_BUF, SubL(t2, t3,2), EFT +color1("B5725E")+p(4),"m 60 -79 b 76 -113 102 -158 139 -185 b 165 -146 165 -88 162 -46 b 177 -25 187 0 192 23 b 165 31 130 33 98 30 b 107 -5 101 -49 60 -79  m 128 -136 b 117 -132 122 -115 134 -118 b 146 -121 142 -140 128 -136 m 132 -81 b 118 -76 125 -57 139 -62 b 150 -67 144 -83 132 -81 m 147 -18 b 132 -9 145 8 157 0 b 167 -5 162 -22 147 -18 m -62 -82 b -83 -115 -103 -150 -146 -179 b -149 -181 -151 -184 -155 -183 b -176 -131 -172 -79 -166 -40 b -178 -21 -186 6 -190 28 b -160 35 -131 32 -102 26 b -108 -23 -97 -56 -62 -82 m -141 -134 b -130 -134 -130 -119 -140 -117 b -150 -117 -153 -132 -141 -134 m -142 -79 b -131 -81 -125 -66 -135 -61 b -144 -56 -155 -72 -143 -78 m -154 -15 b -142 -18 -139 -4 -145 0 b -151 7 -167 -7 -153 -15" )

  75.             ass_main(ASS_BUF, SubL(t2, t3,2), EFT +color1("8BF5FF")+p(4),"m 1 -105 b -54 -105 -104 -63 -104 0 b -104 71 -54 105 1 105 b 48 105 106 70 106 0 b 106 -69 49 -105 1 -105 m 1 -95 b 48 -95 94 -56 96 0 b 95 55 49 93 1 95 b -44 96 -91 63 -94 0 b -89 -64 -53 -91 1 -95" )

  76.             ass_main(ASS_BUF, SubL(t2, t3,2), EFT +color1("FFFFFF")+p(4),"m 0 -90 b 63 -88 91 -32 91 2 b 89 51 55 89 -1 92 b -43 91 -87 66 -91 1 b -91 -42 -62 -89 0 -90 m -1 -90 m -1 -76 b -60 -76 -81 -24 -78 2 b -72 58 -34 79 0 80 b 40 77 77 47 78 2 b 77 -46 43 -76 -1 -76" )
  77.         ass_main(ASS_BUF, SubL(t2, t3,2), EFT +color1("8BF5FF")+p(4),"m 3 -73 b 15 -63 24 -51 29 -41 b 43 -41 54 -38 67 -35 b 65 -19 61 -8 54 4 b 60 16 63 26 65 39 b 56 43 40 45 27 46 b 19 56 10 66 1 75 b -10 67 -19 58 -27 47 b -39 46 -51 42 -63 38 b -61 26 -57 13 -53 1 b -59 -11 -63 -24 -65 -36 b -52 -40 -38 -42 -23 -44 b -16 -52 -8 -62 3 -73" )
复制代码
1

查看全部评分

Rank: 4

沙发
发表于 2014-8-13 22:47:32 |只看该作者
老师,能不能提供这个特效的ass字幕下载?谢谢!
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-23 02:04

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH