- UID
- 9
- 积分
- 4251
- 帖子
- 293
- 主题
- 40
- 论坛币
- 8462
- 威望
- 29
- EP值
- 1646
- MP值
- 8
- 阅读权限
- 100
- 注册时间
- 2011-8-3
- 在线时间
- 151 小时
- 最后登录
- 2022-8-8
|
本帖最后由 四月一日 君寻 于 2013-3-8 23:22 编辑
- from tcaxPy import *
- from pixLibs.ImageStone.pixStone import *
- def tcaxPy_Init():
- global _FD
- global _Fs
- global _TextLength
- global Font
- global FontOut
- global PIX_tex
- global PIX_tex2
- global _Spacing
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = GetVal(val_FontSize)
- _TextLength = GetVal(val_TextLength)
- _FontFileName = GetVal(val_FontFileName)
- _FaceID = GetVal(val_FaceID)
- Font = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), MakeRGB(0, 0, 0), 0, 0)
- FontOut = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), MakeRGB(180, 180, 180), 0, 0)
- PIX_tex = ImagePix(abspath('ime06.png'), _Fs, 0)
- PIX_tex2 = ImagePix(abspath('out01.png'))
- _Spacing = GetVal(val_Spacing)
-
- global pyFont
-
- _FontSize = GetVal(val_FontSize)
-
- pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
- def tcaxPy_Fin():
- FinFont(Font)
- FinFont(FontOut)
- FinFont(pyFont)
- def tcaxPy_User():
- # 创建ASS文件
- file_name = GetVal(val_OutFile) + '.ass'
- ass_header = GetVal(val_AssHeader)
- ASS_FILE = CreateAssFile(file_name, ass_header)
- # 创建TCAS文件
- file_name = GetVal(val_OutFile) + '.tcas'
- fx_width = GetVal(val_ResolutionX)
- fx_height = GetVal(val_ResolutionY)
- fx_fps = GetVal(val_FXFPS)
- TCAS_FILE = CreateTcasFile(file_name, fx_width, fx_height, fx_fps)
- # 基本数据, 如果需要查看含义, 请取消下面两行代码的注释
- #GetHelp()
- #Pause()
- fontSize = GetVal(val_FontSize)
- marginX = GetVal(val_OffsetX)
- marginY = GetVal(val_OffsetY)
- spacing = GetVal(val_Spacing)
- lineNum = GetVal(val_nLines)
- textNum = GetVal(val_nTexts)
- start = GetVal(val_BegTime)
- end = GetVal(val_EndTime)
- kar = GetVal(val_KarTime)
- elapKar = GetVal(val_KarTimeDiff)
- text = GetVal(val_Text)
- textLength = GetVal(val_TextLength)
- advance = GetVal(val_TextAdvance)
- advDiff = GetVal(val_TextAdvanceDiff)
- # 主循环
- for i in range(lineNum):#lineNum
- #initPosX = marginX # an 7, 4, 1
- initPosX = (fx_width - textLength[i]) / 2 + marginX # an 8, 5, 2
- #initPosX = fx_width - textLength[i] - marginX # an 9, 6, 3
- initPosY = marginY # an 7, 8, 9
- #initPosY = fx_height / 2 - marginY # an 4, 5, 6
- #initPosY = fx_height - fontSize - marginY # an 1, 2, 3
- for j in range(textNum[i]):
- posX = initPosX + advDiff[i][j] + advance[i][j] / 2
- posY = initPosY + fontSize / 2
- # Fake2 4~8句有效
- if 3 <= i or i <= 13:
- ASS_BUF, TCAS_BUF = tcaxPy_Main_Fake2(i, j, textNum[i], start[i], end[i], elapKar[i][j], kar[i][j], posX, posY, advance[i][j], text[i][j], start[i - 1], end[i - 1])
- if len(ASS_BUF) > 0:
- WriteAssFile(ASS_FILE, ASS_BUF)
- if len(TCAS_BUF) > 0:
- WriteTcasFile(TCAS_FILE, TCAS_BUF)
- # Fake1 一直有效
- if text[i][j] == ''or text[i][j] == ' ' or text[i][j] == ' ':
- continue
- ASS_BUF, TCAS_BUF = tcaxPy_Main_Fake1(i, j, textNum[i], start[i], end[i], elapKar[i][j], kar[i][j], posX, posY, advance[i][j], text[i][j])
- if len(ASS_BUF) > 0:
- WriteAssFile(ASS_FILE, ASS_BUF)
- if len(TCAS_BUF) > 0:
- WriteTcasFile(TCAS_FILE, TCAS_BUF)
- Progress(i, j) # 显示进度
- FinAssFile(ASS_FILE)
- FinTcasFile(TCAS_FILE)
- def tcaxPy_Main_Fake1(_i, _j, _n, _BT, _ET, _SK, _KT, _x, _y, _a, _txt):
- ASS_BUF = [] # 保存ASS特效
- TCAS_BUF = [] # 保存TCAS特效
- ##### 主要特效编写操作 #####
- dx = _x - int(_a / 2 + 0.5) # 一个固定操作, 将an5的坐标转换为an7
- dy = _y - int(_Fs / 2 + 0.5) # ASS特效默认采用an5坐标, TCAS特效则采用an7坐标
- PIX_t = TextPix(Font, _txt) # 获取文字
-
- dx = _x - int(_a / 2 + 0.5) + PIX_t[0][0]
- dy = _y - int(_Fs / 2 + 0.5) + PIX_t[0][1]
- dur = _KT * 10
- PIX_t = PixTexture(PIX_t, PIX_tex) # 增加纹理
- PIX_out = TextPix(FontOut, _txt) # 获取边框
- PIX_out = PixTexture(PIX_out, PIX_tex2)
- PIX_out = PixColorMul(PIX_out, 1, 1, 1, 0) # 增加透明度
- PIX_out = PixBlur(PIX_out, 0) # 增加模糊
- PIX_ori = CombinePixs(PIX_out, PIX_t) # 混合文字主体和边框 (边框作底)
- points = PixPoints(PIX_ori)
- pt_num = len(points)
-
- inix = dx - randint(30, 30)
- tab_posx = (inix + randint(-40, 40), inix + randint(-130, 130), inix + randint(-130, 130), inix + randint(-40, 40))
- tab_posy = (dy + _Fs + randint(-15, 20), _y + randint(-100, 100), _y + randint(-110, 110), dy + randint(-15, 20))
-
- POS = Bezier3(pt_num, tab_posx[0] + randint(-15, 15), tab_posy[0], tab_posx[3] + randint(-15, 15), tab_posy[3], tab_posx[1] + randint(-20, 20), tab_posy[1], tab_posx[2] + randint(-20, 20), tab_posy[2])
-
- for i in range(pt_num):
- w = points[i][0]
- h = points[i][1]
- idx = 4 * (h * PIX_ori[1][0] + w) # 脚标
- PixR = PIX_ori[2][idx + 0] # 当前像素的红色分量
- PixG = PIX_ori[2][idx + 1] # 当前像素的绿色分量
- PixB = PIX_ori[2][idx + 2] # 当前像素的蓝色分量
- PixA = PIX_ori[2][idx + 3] # 当前像素的透明度
-
- x = dx + points[i][0]
- y = dy + points[i][1]
-
- C = randint(-20, 20)
- if _i > -1 and _i < 3:
- EFT1 = an(7)+shad(0)+bord(0)+pos(x,y)+alpha(255-PixA)+color1(FmtRGB(PixR,PixG,PixB))
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_BT+_SK+_KT+C,0,Pix_Style), EFT1, PixPt())
- EFT1 = an(7)+shad(0)+bord(0)+mov(x, y,POS[i][0],POS[i][1])+alpha(255-PixA)+color1(FmtRGB(PixR,PixG,PixB))+fad(0,300+C)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT+C,_BT+_SK+_KT+50,0,Pix_Style), EFT1, PixPt())
- if _i > -1 and _i < 3:
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_BT+_SK+_KT,3), an(5)+bord(2)+blur(2)+alpha1(255)+pos(_x,_y), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(5)+blur(7)+alpha1(255)+pos(_x,_y)+color3('0000FF'), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(3)+blur(5)+alpha1(255)+pos(_x,_y)+color3('28DDF7'), _txt)
- for i in range (_BT+_SK,_BT+_SK+_KT,8):
- ass_main(ASS_BUF, SubL(i,i+10,3), an(5)+bord(2)+blur(3)+alpha1(120)+pos(_x,_y)+color1('FFFFFF')+color3('FFFFFF'), _txt)
- PIX_tex1 = ImagePix(abspath('ime07.png'), _Fs, 0)
- PIX_d = TextPix(Font, _txt) # 获取文字
-
- dx = _x - int(_a / 2 + 0.5) + PIX_t[0][0]
- dy = _y - int(_Fs / 2 + 0.5) + PIX_t[0][1]
- dur = _KT * 10
- PIX_d = PixTexture(PIX_d, PIX_tex1) # 增加纹理
- PIX_out = TextPix(FontOut, _txt) # 获取边框
- PIX_out = PixTexture(PIX_out, PIX_tex2)
- PIX_out = PixColorMul(PIX_out, 1, 1, 1, 0) # 增加透明度
- PIX_out = PixBlur(PIX_out, 0) # 增加模糊
- PIX_ori = CombinePixs(PIX_out, PIX_d) # 混合文字主体和边框 (边框作底)
- points = PixPoints(PIX_ori)
- pt_num = len(points)
-
- inix = dx - randint(30, 30)
- tab_posx = (inix + randint(-40, 40), inix + randint(-130, 130), inix + randint(-130, 130), inix + randint(-40, 40))
- tab_posy = (dy + _Fs + randint(-15, 20), _y + randint(-100, 100), _y + randint(-110, 110), dy + randint(-15, 20))
-
- POS = Bezier3(pt_num, tab_posx[0] + randint(-15, 15), tab_posy[0], tab_posx[3] + randint(-15, 15), tab_posy[3], tab_posx[1] + randint(-20, 20), tab_posy[1], tab_posx[2] + randint(-20, 20), tab_posy[2])
-
- for i in range(pt_num):
- w = points[i][0]
- h = points[i][1]
- idx = 4 * (h * PIX_ori[1][0] + w) # 脚标
- PixR = PIX_ori[2][idx + 0] # 当前像素的红色分量
- PixG = PIX_ori[2][idx + 1] # 当前像素的绿色分量
- PixB = PIX_ori[2][idx + 2] # 当前像素的蓝色分量
- PixA = PIX_ori[2][idx + 3] # 当前像素的透明度
-
- x = dx + points[i][0]
- y = dy + points[i][1]
-
- if _i > 2 and _i < 8:
- EFT1 = an(7)+shad(0)+bord(0)+pos(x,y)+alpha(255-PixA)+color1(FmtRGB(PixR,PixG,PixB))+fad(0,100)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET+10-8+_j*5+h,0,Pix_Style), EFT1, PixPt())
-
- if _i > 2 and _i < 8:
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT-10,_ET+20-8+_j*5,3), an(5)+bord(2)+blur(2)+alpha1(255)+pos(_x,_y)+fad(0,200), _txt)
-
- if _i > 2 and _i < 8:
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_BT+_SK,3), an(5)+bord(2)+blur(2)+alpha1(0)+pos(_x,_y)+fad(200,0)+color3('000000'), _txt)
-
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(5)+blur(7)+alpha1(0)+pos(_x,_y)+fs(60)+t(fs(40))+fad(0,100)+color1('0000FF')+color3('0000FF'), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(3)+blur(5)+alpha1(0)+pos(_x,_y)+fs(60)+t(fs(40))+fad(0,100)+color1('28DDF7')+color3('28DDF7'), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(1)+blur(2)+alpha1(0)+pos(_x,_y)+fs(60)+t(fs(40))+fad(0,100)+color1('FFFFFF')+color3('FFFFFF'), _txt)
-
-
-
- if _i > 7 and _i < 10:
- ass_main(ASS_BUF, SubL(_BT+_j*5,_ET+_j*5,0), an(5)+bord(2)+blur(2)+alpha1(0)+color3('000000')+pos(_x,_y)+fad(0,200), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(5)+blur(7)+alpha1(255)+pos(_x,_y)+color3('F7372A'), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(3)+blur(5)+alpha1(255)+pos(_x,_y)+color3('FFF900'), _txt)
-
- for i in range (_BT+_SK,_BT+_SK+_KT,8):
- ass_main(ASS_BUF, SubL(i,i+10,3), an(5)+bord(2)+blur(3)+alpha1(120)+pos(_x,_y)+color1('FFFFFF')+color3('FFFFFF'), _txt)
-
-
- PIX = TextPix(pyFont, _txt) # 創建粒子
- InitPosX = _x - int(_a / 2 + 0.5) + PIX[0][0] # an7 X座標
- InitPosY = _y - int(_Fs / 2 + 0.5) + PIX[0][1] # an7 Y座標
- running = 1 # 無限循環用參數
- while running == 1:
- h = randint(0,PIX[1][1]-1) # 隨機取一個點
- w = randint(0,PIX[1][0]-1)
-
- idx = 4 * (h * PIX[1][0] + w) # PIX元組腳標
-
- if PIX[2][idx + 3] != 0: # 該點透明度不為0 即該點在文字上時 終止循環
- running = 0
-
- B = InitPosY + h # 該點的X Y 座標
- A = InitPosX + w
-
- distance = [int(sqrt(w**2+h**2)),int(sqrt((w-PIX[1][0])**2+h**2)),int(sqrt(w**2+(h-PIX[1][1])**2)),int(sqrt((w-PIX[1][0])**2+(h-PIX[1][1])**2))]
- dmax = max(distance)+1 # 計算點與粒子四個角座標的距離 取最大值 由於小數會捨去所以加1
- global CLR
- CLR = DivClr('FFFFFF', 'F80C3B', dmax//2)
- CLR.extend(DivClr('F80C3B', 'FFFFFF', dmax - dmax//2))
- global CLR1
- CLR1 = DivClr('0000FF', 'FFFFFF', dmax//2)
- CLR1.extend(DivClr('FFFFFF', '0000FF', dmax - dmax//2))
-
-
- global CLR2
- CLR2 = DivClr('05FF00', 'FFFFFF', dmax//2)
- CLR2.extend(DivClr('FFFFFF', '05FF00', dmax - dmax//2))
- global CLR3
- CLR3 = DivClr('FFFFFF', 'FF00C8', dmax//2)
- CLR3.extend(DivClr('FF00C8', 'FFFFFF', dmax - dmax//2))
-
-
- for h in range(PIX[1][1]): # 通常粒子字掃點
- Y = InitPosY + h
- for w in range(PIX[1][0]):
- X = InitPosX + w
- idx = 4 * (h * PIX[1][0] + w)
- PixR = PIX[2][idx + 0]
- PixG = PIX[2][idx + 1]
- PixB = PIX[2][idx + 2]
- PixA = PIX[2][idx + 3]
- if PixA != 0:
- d = int(sqrt((X-A)**2+(Y-B)**2)) # 計算點到中心點的距離
-
-
- if _i > 7 and _i < 9:
- ass_main(ASS_BUF, SubL(_BT-10+_j*5-d,_BT+_SK+10,0,Pix_Style),pos(X-0.3,Y)+fad(200,200)+bord(0)+alpha(255-PixA)+color1(CLR[d]), PixPt())
- ass_main(ASS_BUF, SubL(_BT+_SK-5+d,_ET+_j*5+d,0,Pix_Style),pos(X-0.3,Y)+fad(200,200)+bord(0)+alpha(255-PixA)+color1(CLR1[d]), PixPt())
-
-
- if _i > 8 and _i < 10:
- ass_main(ASS_BUF, SubL(_BT-10+_j*5-d,_BT+_SK+10,0,Pix_Style),pos(X-0.3,Y)+fad(200,200)+bord(0)+alpha(255-PixA)+color1(CLR2[d]), PixPt())
- ass_main(ASS_BUF, SubL(_BT+_SK-5+d,_ET+_j*5+d,0,Pix_Style),pos(X-0.3,Y)+fad(200,200)+bord(0)+alpha(255-PixA)+color1(CLR3[d]), PixPt())
-
-
-
-
- PIX_t = TextPix(Font, _txt) # 获取文字
-
- dx = _x - int(_a / 2 + 0.5) + PIX_t[0][0]
- dy = _y - int(_Fs / 2 + 0.5) + PIX_t[0][1]
- dur = _KT * 10
- PIX_t = PixTexture(PIX_t, PIX_tex) # 增加纹理
- PIX_out = TextPix(FontOut, _txt) # 获取边框
- PIX_out = PixTexture(PIX_out, PIX_tex2)
- PIX_out = PixColorMul(PIX_out, 1, 1, 1, 0) # 增加透明度
- PIX_out = PixBlur(PIX_out, 0) # 增加模糊
- PIX_ori = CombinePixs(PIX_out, PIX_t) # 混合文字主体和边框 (边框作底)
- points = PixPoints(PIX_ori)
- pt_num = len(points)
-
- inix = dx - randint(30, 30)
- tab_posx = (inix + randint(-40, 40), inix + randint(-130, 130), inix + randint(-130, 130), inix + randint(-40, 40))
- tab_posy = (dy + _Fs + randint(-15, 20), _y + randint(-100, 100), _y + randint(-110, 110), dy + randint(-15, 20))
-
- POS = Bezier3(pt_num, tab_posx[0] + randint(-15, 15), tab_posy[0], tab_posx[3] + randint(-15, 15), tab_posy[3], tab_posx[1] + randint(-20, 20), tab_posy[1], tab_posx[2] + randint(-20, 20), tab_posy[2])
-
- for i in range(pt_num):
- w = points[i][0]
- h = points[i][1]
- idx = 4 * (h * PIX_ori[1][0] + w) # 脚标
- PixR = PIX_ori[2][idx + 0] # 当前像素的红色分量
- PixG = PIX_ori[2][idx + 1] # 当前像素的绿色分量
- PixB = PIX_ori[2][idx + 2] # 当前像素的蓝色分量
- PixA = PIX_ori[2][idx + 3] # 当前像素的透明度
-
- x = dx + points[i][0]
- y = dy + points[i][1]
-
- C = randint(-20, 20)
-
- if _i > 9:
- EFT1 = an(7)+shad(0)+bord(0)+pos(x,y)+alpha(255-PixA)+color1(FmtRGB(PixR,PixG,PixB))
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_ET+C,0,Pix_Style), EFT1, PixPt())
- EFT1 = an(7)+shad(0)+bord(0)+mov(x, y,POS[i][0],POS[i][1])+alpha(255-PixA)+color1(FmtRGB(PixR,PixG,PixB))+fad(0,300+C)
- ass_main(ASS_BUF, SubL(_ET+C,_ET+50,0,Pix_Style), EFT1, PixPt())
-
-
- if _i > 9:
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_ET+20-_j*5,3), an(5)+bord(2)+blur(2)+alpha1(255)+color3('000000')+pos(_x,_y)+fad(200,200), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(5)+blur(7)+alpha1(255)+pos(_x,_y)+color3('0000FF'), _txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,3), an(5)+bord(3)+blur(5)+alpha1(255)+pos(_x,_y)+color3('28DDF7'), _txt)
-
- for i in range (_BT+_SK,_BT+_SK+_KT,8):
- ass_main(ASS_BUF, SubL(i,i+10,3), an(5)+bord(2)+blur(3)+alpha1(120)+pos(_x,_y)+color1('FFFFFF')+color3('FFFFFF'), _txt)
-
-
-
-
- return (ASS_BUF, TCAS_BUF)
- def tcaxPy_Main_Fake2(_i, _j, _n, _BT, _ET, _SK, _KT, _x, _y, _a, _txt, ewaicanshu1, ewaicanshu2):
- ASS_BUF = []
- TCAS_BUF = []
- dx = _x - int(_a / 2 + 0.5) # 一个固定操作, 将an5的坐标转换为an7
- dy = _y - int(_Fs / 2 + 0.5) # ASS特效默认采用an5坐标, TCAS特效则采用an7坐标
- if _i > 2 and _i < 8:
-
- for i in range(0,_a,10):
- for j in range(0,_Fs,10):
- for k in range(2):
- R = randint(-20,20)
- B = randint(-5,5)
- ass_main(ASS_BUF, SubL(_BT+_SK+int(i/_Fs*_KT)+R,_BT+_SK+int(i/_Fs*_KT)+R+80), bord(0)+blur(15)+fs(15)+mov(dx+i,dy+j,dx+i+B,dy+j-40+R)+alpha1(150+R)+color1('000000')+fad(0,200), "●")
- ass_main(ASS_BUF, SubL(_BT+_SK+int(i/_Fs*_KT)+R,_BT+_SK+int(i/_Fs*_KT)+R+40), bord(0)+blur(10)+fs(20)+pos(dx+i,dy+j)+color1('0000FF')+fad(0,300), "●")
- if _i > 9:
- for i in range(0,_a,10):
- for j in range(0,_Fs,10):
- for k in range(2):
- R = randint(-20,20)
- B = randint(-5,5)
- ass_main(ASS_BUF, SubL(_BT+_SK+int(i/_Fs*_KT)+R,_BT+_SK+int(i/_Fs*_KT)+R+80), bord(0)+blur(15)+fs(15)+mov(dx+i,dy+j,dx+i+B,dy+j-40+R)+alpha1(150+R)+color1('000000')+fad(0,200), "●")
- ass_main(ASS_BUF, SubL(_BT+_SK+int(i/_Fs*_KT)+R,_BT+_SK+int(i/_Fs*_KT)+R+40), bord(0)+blur(10)+fs(20)+pos(dx+i,dy+j)+color1('0000FF')+fad(0,300), "●")
- return (ASS_BUF, TCAS_BUF)
复制代码 上面是特效主体部分
下面是mask部分- from tcaxPy import *
- from pixLibs.ImageStone.pixStone import *
- def tcaxPy_Init():
- global _FD # 一帧的时间
- global _Fs
- global _TextLength
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = GetVal(val_FontSize)
- _TextLength = GetVal(val_TextLength)
- def tcaxPy_Fin():
- pass
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _x, _y, _a, _txt):
- ASS_BUF = [] # 保存ASS特效
- TCAS_BUF = [] # 保存TCAS特效
- if _i > -1 and _i < 3:
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_BT+(_j+1)*5), an(5)+blur(1)+fad(0,50)+pos(_x,_y)+fs(100)+t(fs(1)), '▲')
- if _i > 9:
- ass_main(ASS_BUF, SubL(_BT-20+_j*5,_BT+(_j+1)*5), an(5)+blur(1)+fad(0,50)+pos(_x,_y)+fs(100)+t(fs(1)), '▲')
- return (ASS_BUF, TCAS_BUF)
复制代码 这脚本之前打算发的 后面发现跟现在的TCAX版本运行此脚本会有BUG就没发 丢一边了 然后今天算是修复了吧
此特效火焰烟雾移动部分 之前的设想是跟 艾文大 025 - CANAAN - OP 特效一样 烟雾回头效果 但是 当时没弄出来 然后就是现在的这个版本 不打算 V2 回头部分的写法在 我的19号特效里面 都会发出来 嗯
最后这个特效得用avs的 overlay 挂起才能看到最终效果 就是这样
以下是AVS- LoadPlugin("D:\tcax\VSFilter.dll")
- c = DirectShowSource("D:\youkaze_KFX\Accel_world\Accel_world_jp_k.mp4",fps=23.976,convertfps=true)
- a = DirectShowSource("D:\youkaze_KFX\Accel_world\Accel_world_jp_k.mp4",fps=23.976,convertfps=true).textsub("Accel_world_jp.ass").textsub("Accel_world_cn.ass")
- b = BlankClip(length = 36000, width = 1280, height = 720, fps = 23.976, color = $000000).KillAudio.ConvertToRGB32.textsub("Accel_world_jp_mask.ass")
- Overlay(a, c, mask = b).lanczosresize(1280,720)
复制代码 预览下载地址:
http://pan.baidu.com/share/link?shareid=316421&uk=900964 |
-
3
查看全部评分
-
|