TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
Detective Conan OP 36
[打印本页]
作者:
Alex
时间:
2013-11-6 11:06:20
标题:
Detective Conan OP 36
本帖最后由 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 / 它不是一个完整的 -》剧本《-)
from tcaxPy import *
def tcaxPy_Init():
global _FontFileName
global _FaceID
global _Fs
global _FS
global _Wd
global _Ht
global _Dx
global _Dy
global _Spc
global _Sps
global _Br
global _FD
global COLOR
global Feather
global _FontSize
global pyFont
global Colors
_FontFileName = GetVal(val_FontFileName)
_FaceID = GetVal(val_FaceID)
_Fs = GetVal(val_FontSize)
_Wd = GetVal(val_ResolutionX)
_Ht = GetVal(val_ResolutionY)
_Dx = GetVal(val_OffsetX)
_Dy = GetVal(val_OffsetY)
_Spc = GetVal(val_Spacing)
_Sps = GetVal(val_SpaceScale)
_Br = GetVal(val_Blur)
_FD = 1000 / GetVal(val_FXFPS)
_FS = GetVal(val_FontSize)
_FontSize = GetVal(val_FontSize)
_H = _FontSize
_FS = _FontSize
COLOR = DivClr(GetVal(val_1C), GetVal(val_2C), _H + 2)
#Colors = ['00FFFF', '0000FF', '00FF00', 'FF0080', '0080FF']
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 \
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 \
l 14 51 l 18 51 l 17 47 l 20 50 l 20 42 l 24 38 l 25 45{\\p0}"
pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
time_gap = 1
time_fac = 1
def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
ASS_BUF = []
TCAS_BUF = []
_7X = _X - int(_A / 2 + 0.5)
_7Y = _Y - int(_FontSize / 2 + 0.5)
_H = _FontSize
_start = _BT
_end = _ET
_elapk = _SK
_st = _BT
_et = _ET
_sk = _SK
_k = _KT
_x = _X
_y = _Y
_a = _A
_txt = _TXT
##########################################
if _i <5:
cc = "\\1vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
c3 = "\\3vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
Colors = ['FFFEE', '791A05', 'E7601C', 'FFE164', 'F893A4']
elif _i >4 and _i<6:
cc = "\\1vc(&HD37CED&,&HD37CED&,&H752451&,&H752451&)\\bord2\\be1\\3c&HFFFFFF&"
c3 = "\\1vc(&HD37CED&,&HD37CED&,&H752451&,&H752451&)\\bord2\\be1\\3c&HFFFFFF&"
Colors = ['F89A9E', 'C354DC', '3E1640', '981B56', 'A810D7']
elif _i >5 and _i<7:
cc = "\\1vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
c3 = "\\1vc(&H742A04&,&H742A04&,&HF38C61&,&HF38C61&)\\bord2\\be1\\3c&HFFFFFF&"
Colors = ['FFFEE', '791A05', 'E7601C', 'FFE164', 'F893A4']
elif _i >6 and _i<8:
cc = "\\1vc(&H22044A&,&H22044A&,&HA686E6&,&&HA686E6&)\\bord2\\be1\\3c&HFFFFFF&"
Colors = ['BC94FF', '200A48', '4F17AD', '151ADC', 'E23FC6']
elif _i >7:
cc = "\\1vc(&H000089&,&H000089&,&H236DF5&,&H236DF5&)\\bord2\\be1\\3c&HFFFFFF&"
c3 = "\\1vc(&H000089&,&H000089&,&H236DF5&,&H236DF5&)\\bord2\\be1\\3c&HFFFFFF&"
Colors = ['7AB6F9', '131A70', '4562DD', '2F2FED', '19B4E7']
##########################################
duration = 20* _FD
ts = _start + _j * time_fac * _FD / 10 - time_gap * _FD / 10 - duration / 10 -10
te = _start + _j * time_fac * _FD / 10 - time_gap * _FD / 10
ts1 = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10
EFT = an(5)+mov(_x+50,_y,_x,_y)+cc+org(_x-40,_y+20)+fad(200,0)+t(fr(-750))
ass_main(ASS_BUF,SubL(ts,te,0), EFT, _txt)
EFT = an(5)+mov(_x,_y,_x,_y)+cc
ass_main(ASS_BUF,SubL(te,_BT+_SK,0), EFT, _txt)
ass_main(ASS_BUF,SubL(_BT+_SK,ts1+5,0), EFT, _txt)
ts1 = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10
te1 = _end - (_n - _j - 1) * time_fac * _FD / 10 + time_gap * _FD / 10 + duration / 10
EFT = an(5)+mov(_x,_y,_x-50,_y)+org(_x+30,_y+20)+fad(0,200)+t(fr(-750)) +cc
ass_main(ASS_BUF,SubL(ts1+5,te1+5,0), EFT, _txt)
EFT = an(5)+fad(70,70)+blur(2)+bord(1)+mov(_x,_y,_x,_y)+cc
#ass_main(ASS_BUF,SubL(_start+_elapk,_start+_elapk+_k,0), EFT, _txt)
tsk = _st + _sk
tek = _st + _sk + _k
c1 = "H1994E2"
c2 = "H4545F3"
c3 = "HEDDF60"
if _i<11:
B1 = Bezier3(100, _x - _a / 2, _y, _x + _a / 2, _y, _x - _a / 4, _y - 3 * _FS, _x + _a / 4, _y + 3 * _FS)
for ii in range(100):
POS = pos(B1[ii][0], B1[ii][1])
EFT1 = POS + bord(1) + blur(5) + color1("FFFFFF") + bord(1)
ass_main(ASS_BUF, SubL(tsk + ii / 5 + 2, tsk + ii / 4 + 3, 10), EFT1, PixPt()) #B1
EFTk1 = mov(B1[ii][0], B1[ii][1], B1[ii][0] + randint(-_a, _a), B1[ii][1] + randint(-_FS, _FS)) + color1('FFFFFF') + \
color3(Colors[randint(0, 4)]) + bord(0.5) + blur(5)+ t(frx(randint(-720, 720)) + frz(randint(-90, 90))) + fad(0, 100)
ass_main(ASS_BUF, SubL(tsk + ii * _k / 80 + 2, tsk + ii * _k / 90 + 22, randint(3, 7)), EFTk1, RandPolygon(2, 3, 4))
B2 = Bezier3(100, _x - _a / 2, _y, _x + _a / 2, _y, _x - _a / 4, _y + 3 * _FS, _x + _a / 4, _y - 3 * _FS)
for jj in range(100):
POS = pos(B2[jj][0], B2[jj][1])
EFT2 = POS + bord(1) + blur(5) + color1("FFFFFF") + bord(1)
ass_main(ASS_BUF, SubL(tsk + jj / 5 + 2, tsk + jj / 4 + 3, 10), EFT2, PixPt()) #B2
EFTk2 = mov(B2[jj][0], B2[jj][1], B2[jj][0] + randint(-_a, _a), B2[jj][1] + randint(-_FS, _FS)) + color1('FFFFFF') + \
color3(Colors[randint(0, 4)]) + bord(0.5) + blur(5) + t(frx(randint(-720, 720)) + frz(randint(-90, 90))) + fad(0, 100)
ass_main(ASS_BUF, SubL(tsk + jj * _k / 80 + 2, tsk + jj * _k / 90 + 22, randint(3, 7)), EFTk2, RandPolygon(2, 3, 4))
for i in range(_H + 4):
CLIP = clip(_7X - 1-20, _7Y + i - 1, _7X + 10 + _H+10, _7Y + i)
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))
for k in range(AdvInt(_KT/10)):
ass_main(ASS_BUF, SubL(_BT+_SK+k*10,_BT+_SK+(k+1)*10,10), bord(1)+color3("ffffff")+color1("000000")+ M +CLIP, _TXT)
##########################################
return (ASS_BUF, TCAS_BUF)
复制代码
作者:
milkyjing
时间:
2013-11-7 20:54:50
Good job Alex. But it's a pity that we cannot download the preview
作者:
Alex
时间:
2013-11-8 13:14:06
本帖最后由 Alex 于 2013-11-8 13:33 编辑
Online :
http://vimeo.com/78885559
http://www.dailymotion.com/family_filter?urlback=%2Fvideo%2Fx16y3vs_detective-conan-op_music
.
作者:
milkyjing
时间:
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
作者:
Alex
时间:
2013-11-9 13:19:35
thankyou
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2