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

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

[完整特效] Detective Conan OP 36 [复制链接]

Rank: 4

跳转到指定楼层
楼主
发表于 2013-11-6 11:06:20 |只看该作者 |倒序浏览
本帖最后由 Alex 于 2013-11-8 13:17 编辑

Hi everyone

FX for Detective Conan OP 36  new song and new op, so i sued some script of others members in this forum
and i modify it.

-- VSFilterMod \ Python & Lua

Online :  https://vimeo.com/78885559

Note: ( It's not a Full script / 它不是一个完整的  -》剧本《-)
  1. from tcaxPy import *                 


  2. def tcaxPy_Init():


  3.     global _FontFileName
  4.     global _FaceID
  5.     global _Fs
  6.     global _FS
  7.     global _Wd
  8.     global _Ht
  9.     global _Dx
  10.     global _Dy
  11.     global _Spc
  12.     global _Sps
  13.     global _Br
  14.     global _FD                         
  15.     global COLOR
  16.     global Feather
  17.     global _FontSize
  18.     global pyFont
  19.     global Colors

  20.     _FontFileName  = GetVal(val_FontFileName)
  21.     _FaceID        = GetVal(val_FaceID)
  22.     _Fs            = GetVal(val_FontSize)
  23.     _Wd            = GetVal(val_ResolutionX)
  24.     _Ht            = GetVal(val_ResolutionY)
  25.     _Dx            = GetVal(val_OffsetX)
  26.     _Dy            = GetVal(val_OffsetY)
  27.     _Spc           = GetVal(val_Spacing)
  28.     _Sps           = GetVal(val_SpaceScale)
  29.     _Br            = GetVal(val_Blur)
  30.     _FD           = 1000 / GetVal(val_FXFPS)
  31.     _FS = GetVal(val_FontSize)
  32.     _FontSize = GetVal(val_FontSize)
  33.     _H = _FontSize
  34.     _FS =  _FontSize
  35.     COLOR = DivClr(GetVal(val_1C), GetVal(val_2C), _H + 2)
  36.     #Colors = ['00FFFF', '0000FF', '00FF00', 'FF0080', '0080FF']
  37.     Feather = "{\\p3}m 26 37 l 38 27 l 45 19 l 52 11 l 57 7 b 66 0 72 9 64 29 l 59 26 l 62 31 b 58 36 52 43 46 47 l 41 44 l 44 48 \
  38.     b 41 52 37 56 33 58 l 28 52 l 30 58 l 27 61 l 24 58 l 24 61 l 21 58 l 17 61 l 17 59 b 11 62 6 64 0 64 l 0 60 b 5 60 12 57 16 54 \
  39.     l 14 51 l 18 51 l 17 47 l 20 50 l 20 42 l 24 38 l 25 45{\\p0}"
  40.     pyFont    = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)



  41. time_gap = 1     
  42. time_fac = 1     

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

  44.     ASS_BUF = []                 
  45.     TCAS_BUF = []                 

  46.     _7X = _X - int(_A / 2 + 0.5)  
  47.     _7Y = _Y - int(_FontSize / 2 + 0.5)
  48.     _H = _FontSize
  49.     _start = _BT
  50.     _end = _ET
  51.     _elapk = _SK
  52.     _st = _BT
  53.     _et = _ET
  54.     _sk = _SK
  55.     _k = _KT
  56.     _x = _X
  57.     _y = _Y
  58.     _a = _A
  59.     _txt = _TXT


  60.     ##########################################

  61.     if _i <5:
  62.          cc = "\\1vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
  63.          c3 = "\\3vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
  64.          Colors = ['FFFEE', '791A05', 'E7601C', 'FFE164', 'F893A4']
  65.     elif _i >4 and _i<6:
  66.          cc = "\\1vc(&HD37CED&,&HD37CED&,&H752451&,&H752451&)\\bord2\\be1\\3c&HFFFFFF&"
  67.          c3 = "\\1vc(&HD37CED&,&HD37CED&,&H752451&,&H752451&)\\bord2\\be1\\3c&HFFFFFF&"
  68.          Colors = ['F89A9E', 'C354DC', '3E1640', '981B56', 'A810D7']
  69.     elif _i >5 and _i<7:
  70.          cc = "\\1vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
  71.          c3 = "\\1vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
  72.          Colors = ['FFFEE', '791A05', 'E7601C', 'FFE164', 'F893A4']
  73.     elif _i >6 and _i<8:
  74.          cc = "\\1vc(&H22044A&,&H22044A&,&HA686E6&,&&HA686E6&)\\bord2\\be1\\3c&HFFFFFF&"
  75.          Colors = ['BC94FF', '200A48', '4F17AD', '151ADC', 'E23FC6']
  76.     elif _i >7:
  77.          cc = "\\1vc(&H000089&,&H000089&,&H236DF5&,&H236DF5&)\\bord2\\be1\\3c&HFFFFFF&"
  78.          c3 = "\\1vc(&H000089&,&H000089&,&H236DF5&,&H236DF5&)\\bord2\\be1\\3c&HFFFFFF&"
  79.          Colors = ['7AB6F9', '131A70', '4562DD', '2F2FED', '19B4E7']


  80.     ##########################################

  81.     duration = 20* _FD


  82.     ts = _start + _j * time_fac * _FD / 10 - time_gap * _FD / 10 - duration / 10 -10
  83.     te = _start + _j * time_fac * _FD / 10 - time_gap * _FD / 10
  84.     ts1 = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10
  85.    
  86.     EFT = an(5)+mov(_x+50,_y,_x,_y)+cc+org(_x-40,_y+20)+fad(200,0)+t(fr(-750))
  87.     ass_main(ASS_BUF,SubL(ts,te,0), EFT, _txt)
  88.    

  89.     EFT = an(5)+mov(_x,_y,_x,_y)+cc
  90.     ass_main(ASS_BUF,SubL(te,_BT+_SK,0), EFT, _txt)
  91.     ass_main(ASS_BUF,SubL(_BT+_SK,ts1+5,0), EFT, _txt)

  92.     ts1 = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10
  93.     te1 = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10 + duration / 10


  94.     EFT = an(5)+mov(_x,_y,_x-50,_y)+org(_x+30,_y+20)+fad(0,200)+t(fr(-750)) +cc
  95.     ass_main(ASS_BUF,SubL(ts1+5,te1+5,0), EFT, _txt)


  96.     EFT = an(5)+fad(70,70)+blur(2)+bord(1)+mov(_x,_y,_x,_y)+cc
  97.     #ass_main(ASS_BUF,SubL(_start+_elapk,_start+_elapk+_k,0), EFT, _txt)

  98.       
  99.     tsk = _st + _sk
  100.     tek = _st + _sk + _k


  101.     c1 = "H1994E2"
  102.     c2 = "H4545F3"
  103.     c3 = "HEDDF60"

  104.     if _i<11:  

  105.         B1 = Bezier3(100, _x - _a / 2, _y, _x + _a / 2, _y, _x - _a / 4, _y - 3 * _FS, _x + _a / 4, _y + 3 * _FS)
  106.         for ii in range(100):
  107.              POS = pos(B1[ii][0], B1[ii][1])
  108.              EFT1 = POS + bord(1) + blur(5) + color1("FFFFFF") + bord(1)
  109.              ass_main(ASS_BUF, SubL(tsk + ii / 5 + 2, tsk + ii / 4 + 3, 10), EFT1, PixPt())                                                   #B1
  110.              EFTk1 = mov(B1[ii][0], B1[ii][1], B1[ii][0] + randint(-_a, _a), B1[ii][1] + randint(-_FS, _FS)) + color1('FFFFFF') + \
  111.              color3(Colors[randint(0, 4)]) + bord(0.5) + blur(5)+ t(frx(randint(-720, 720)) + frz(randint(-90, 90))) + fad(0, 100)
  112.              ass_main(ASS_BUF, SubL(tsk + ii * _k / 80 + 2, tsk + ii * _k / 90 + 22, randint(3, 7)), EFTk1, RandPolygon(2, 3, 4))
  113.         
  114.   
  115.         B2 = Bezier3(100, _x - _a / 2, _y, _x + _a / 2, _y, _x - _a / 4, _y + 3 * _FS, _x + _a / 4, _y - 3 * _FS)
  116.         for jj in range(100):
  117.              POS = pos(B2[jj][0], B2[jj][1])
  118.              EFT2 = POS + bord(1) + blur(5) + color1("FFFFFF") + bord(1)
  119.              ass_main(ASS_BUF, SubL(tsk + jj / 5 + 2, tsk + jj / 4 + 3, 10), EFT2, PixPt())                                                   #B2
  120.              EFTk2 = mov(B2[jj][0], B2[jj][1], B2[jj][0] + randint(-_a, _a), B2[jj][1] + randint(-_FS, _FS)) + color1('FFFFFF') + \
  121.              color3(Colors[randint(0, 4)]) + bord(0.5) + blur(5) + t(frx(randint(-720, 720)) + frz(randint(-90, 90))) + fad(0, 100)
  122.              ass_main(ASS_BUF, SubL(tsk + jj * _k / 80 + 2, tsk + jj * _k / 90 + 22, randint(3, 7)), EFTk2, RandPolygon(2, 3, 4))

  123.     for i in range(_H + 4):
  124.        CLIP = clip(_7X - 1-20, _7Y + i - 1, _7X + 10 + _H+10, _7Y + i)
  125.        M = t1(0,50,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-25,25),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-25,25),_Y))
  126.        for k in range(AdvInt(_KT/10)):
  127.             ass_main(ASS_BUF, SubL(_BT+_SK+k*10,_BT+_SK+(k+1)*10,10), bord(1)+color3("ffffff")+color1("000000")+ M +CLIP, _TXT)


  128.     ##########################################

  129.     return (ASS_BUF, TCAS_BUF)       

复制代码

回帖推荐

milkyjing 发表于4楼  查看完整内容

Hmm, it's an awesome work, I like it. uploaded a copy into baidu China http://pan.baidu.com/s/1471W7
3

查看全部评分

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 2013-11-7 20:54:50 |只看该作者
Good job Alex. But it's a pity that we cannot download the preview

Rank: 4

板凳
发表于 2013-11-8 13:14:06 |只看该作者

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

地板
发表于 2013-11-9 00:36:52 |只看该作者
Alex 发表于 2013-11-8 13:14
Online :

Hmm, it's an awesome work, I like it.

uploaded a copy into baidu China

http://pan.baidu.com/s/1471W7

Rank: 4

5#
发表于 2013-11-9 13:19:35 |只看该作者
thankyou
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-23 20:01

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH