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

标题: [SAI]043_shingekinokyojinOP2 [打印本页]

作者: saiyaku    时间: 2014-2-14 19:29:26     标题: [SAI]043_shingekinokyojinOP2

預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview
  1. from tcaxPy import *
  2. from util.tcCurve import *
  3. from util.cairo import *


  4. def tcaxPy_Init():
  5.     global _Fs
  6.     global _Spacing
  7.     global Font
  8.     global surface
  9.     global ctx
  10.     global M
  11.     _Fs = GetVal(val_FontSize)
  12.     _FontFileName = GetVal(val_FontFileName)
  13.     _FaceID = GetVal(val_FaceID)
  14.     _Spacing = GetVal(val_Spacing)
  15.     Font = InitFont(_FontFileName, _FaceID, _Fs, _Spacing, GetVal(val_SpaceScale), MakeRGB(0, 0, 0), 0, False)
  16.     fx_width = GetVal(val_ResolutionX)
  17.     fx_height = GetVal(val_ResolutionY)
  18.     surface = ImageSurface(FORMAT_ARGB32, fx_width, fx_height)
  19.     ctx = Context(surface)
  20.     ctx.select_font_face(GetVal(val_FontFaceName))
  21.     ctx.set_font_size(CairoFontSize(_FontFileName, _FaceID, _Fs))

  22. def tcaxPy_Fin():
  23.     FinFont(Font)

  24. def tcaxPy_Main(_I, _J, _N, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
  25.     ASS_BUF = []        # used for saving ASS FX lines
  26.     if _I == 7:
  27.         _Y = _Y-50


  28.     dx = _X - int((_A + _Spacing) / 2 + 0.5)         
  29.     dy = _Y - int(_Fs / 2 + 0.5)                     

  30.     if _J == 0:
  31.         ctx.new_path()
  32.         ctx.move_to(dx,dy+ _Fs + GetVal(val_Descender))
  33.         TXT = ""
  34.         for j in range(_N):
  35.             TXT += getTXT(_I,j)

  36.         ctx.text_path(TXT)
  37.         ctx.scale(1 / 64, 1 / 64)
  38.         outline = ToAssDraw(ctx)
  39.         ctx.scale(64, 64)

  40.         END=_ET-int((getpos(_I,_N-1)[0]-getpos(_I,0)[0]+100)/3)-100


  41.         for T in range(_BT-5,END ,int((getpos(_I,_N-1)[0]-getpos(_I,0)[0]+100)/3)+100):
  42.             ass_main(ASS_BUF, SubL(T, T+(getpos(_I,_N-1)[0]-getpos(_I,0)[0]+100)/3,70), an(7) + mov(getpos(_I,0)[0]-50, _Y,getpos(_I,_N-1)[0]+50,_Y)+blur(3)+alpha1(30)+color1("FFFFFF")+bord(0)+shad(0)+clip(7,outline)+frz(-45) + fscx(70) ,"{\p1}m -15 -30 l 15 -30 15 30 -15 30")
  43.             ass_main(ASS_BUF, SubL(T, T+(getpos(_I,_N-1)[0]-getpos(_I,0)[0]+100)/3,70), an(7) + mov(getpos(_I,_N-1)[0]+50, _Y,getpos(_I,0)[0]-50,_Y)+blur(3)+alpha1(30)+color1("FFFFFF")+bord(0)+shad(0)+clip(7,outline)+frz(-45) + fscx(70) ,"{\p1}m -15 -30 l 15 -30 15 30 -15 30")
  44.             ass_main(ASS_BUF, SubL(T, T+(getpos(_I,_N-1)[0]-getpos(_I,0)[0]+100)/3,70), an(7) + mov(getpos(_I,0)[0]-50, _Y,getpos(_I,_N-1)[0]+50,_Y)+blur(3)+alpha1(30)+color1("FFFFFF")+bord(0)+shad(0)+clip(7,outline)+frz(-45) + fscx(70) ,"{\p1}m -15 -30 l 15 -30 15 30 -15 30")
  45.             ass_main(ASS_BUF, SubL(T, T+(getpos(_I,_N-1)[0]-getpos(_I,0)[0]+100)/3,70), an(7) + mov(getpos(_I,_N-1)[0]+50, _Y,getpos(_I,0)[0]-50,_Y)+blur(3)+alpha1(30)+color1("FFFFFF")+bord(0)+shad(0)+clip(7,outline)+frz(-45) + fscx(70) ,"{\p1}m -15 -30 l 15 -30 15 30 -15 30")
  46.    
  47.     ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,49),fad(300,300)+pos(_X+1,_Y+1)+alpha1(120) + color1("000000") + blur(1) , _TXT)
  48.     ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,50),fad(300,300)+pos(_X,_Y)+alpha1(0) + color1("FFFFFF"), _TXT)
  49.     ass_main(ASS_BUF, SubL(_BT-30+_J*3,_ET+10+_J*3,51),fad(300,300)+pos(_X+2,_Y+2)+alpha1(35) + color1("1B1B1B")+ blur(1) , _TXT)
  50.     ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,60),pos(_X,_Y)+alpha1(255) + color1("FFFFFF")+bord(2)+blur(6), _TXT)

  51.     for i in range(7):
  52.         for j in range(_BT+_SK,_BT+_SK+_KT,3):
  53.             ass_main(ASS_BUF, SubL(j,j+2,60),mov(_X,_Y,_X+randint(-1,1),_Y+randint(-1,1))+alpha1(170) + color1("FFFFFF")+bord(0)+blur(1), _TXT)
  54.   
  55.     global OPOS
  56.     global XPOS
  57.     if _J == 0 and _I == 0:
  58.         OPOS = [(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0)]
  59.         XPOS = [(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0)]


  60.     if _I > 3 and _I!=7:

  61.         for n in range(3):
  62.             if _I == 4 and _J==0:
  63.                 OPOS[n] = (_X+randint(int(-_A/4*3),int(_A/4*3)),_Y+randint(-30,30))
  64.             else:
  65.                 OPOS[n] = XPOS[n]
  66.       
  67.         for k in range(3):

  68.             PP = [OPOS[k],OPOS[k],OPOS[k]]

  69.             for x in range(_BT+_SK-5,_BT+_SK+_KT,20):
  70.                 XPOS[k] = (_X+randint(int(-_A/4*3),int(_A/4*3)),_Y+randint(-30,30))
  71.                 PP.append(XPOS[k])
  72.             PP.append(XPOS[k])
  73.             PP.append(XPOS[k])

  74.             ucb = UCBSpline(PP)
  75.   
  76.             STEP_N = _KT  

  77.             step_size = 1 / STEP_N

  78.             POS = []

  79.             for u in range(STEP_N):
  80.                  POS.append(ucb(u * step_size))

  81.             s = "●"
  82.             for w in range(STEP_N):
  83.             
  84.                 for j in range(7):
  85.                     rand1 = (POS[w][0],POS[w][1])
  86.                     rand2 = RandCir2(POS[w][0],POS[w][1],8,15)

  87.                     ass_main(ASS_BUF, SubL(_BT+_SK-5+w*1, _BT+_SK-5+16+(w+1)*1,30), alpha3(randint(80,120))+fs(1)+an(5)+xbord(0.1*randint(60,80))+ybord(0.1*randint(60,80))+blur(10)+shad(0)+mov(rand1[0], rand1[1],rand2[0], rand2[1]) +t(fsc(0,0)+xbord(0)+ybord(0))+fad(50,300)+color1('0000EE')+color3('0000EE'), s )
  88.                     ass_main(ASS_BUF, SubL(_BT+_SK-5+w*1, _BT+_SK-5+16+(w+1)*1,32), alpha3(randint(30,70))+fs(1)+an(5)+xbord(0.1*randint(40,60))+ybord(0.1*randint(40,60))+blur(6)+shad(0)+mov(rand1[0], rand1[1],rand2[0], rand2[1]) +t(fsc(0,0)+xbord(0)+ybord(0))+fad(50,300)+color1('0080FF')+color3('0080FF'), s )
  89.                     ass_main(ASS_BUF, SubL(_BT+_SK-5+w*1, _BT+_SK-5+16+(w+1)*1,35), alpha3(randint(0,50))+fs(1)+an(5)+xbord(0.1*randint(20,35))+ybord(0.1*randint(20,35))+blur(3)+shad(0)+ mov(rand1[0], rand1[1],rand2[0], rand2[1]) +t(fsc(0,0)+xbord(0)+ybord(0))+fad(50,300)+color1('FFFFFF')+color3('FFFFFF'), s )

  90.                 for i in range(randint(0,2)):

  91.                     C3 = DivClr('0080FF', '0000EE', 20)[randint(0, 19)]

  92.                     rand1 = RandCir(POS[w][0],POS[w][1],10)
  93.                     rand2 = RandCir2(POS[w][0],POS[w][1],20,40)
  94.                     x = RandPolygon(12/8, 12/8, 4)
  95.                     ass_main(ASS_BUF, SubL(_BT+_SK-5+w*1, _BT+_SK-5+60+(w+1)*1,35), alpha(80)+an(5)+t(fry(720))+color3(C3)+bord(1.8)+shad(0)+blur(2)+ mov(rand1[0], rand1[1],rand2[0], rand2[1]) +fad(50,500),x )


  96.                 c = DivClr('C0C0C0', '4F4F4F', 40)[randint(0, 39)]
  97.                 ox = randint(-10, 10)
  98.                 ass_main(ASS_BUF, SubL(_BT+_SK-5+w*1, _BT+_SK-5+100+(w+1)*1,15), an(5) + xbord(randint(4, 8)) + ybord(randint(4, 8)) + blur(8) + alpha(randint(100, 200)) + shad(0) + t(xbord(randint(1, 4)) + ybord(randint(1, 4)) ) +fs(1)+fad(50,500)+color1(c) + color3(c)+mov(POS[w][0] + ox,POS[w][1] + randint(0, 10),POS[w][0] + ox,POS[w][1]+ randint(-20, 0)),"●" )

  99.     return (ASS_BUF, None)
复制代码

作者: milkyjing    时间: 2014-2-14 23:52:31

强力顶, 很赞的特效
作者: 1208    时间: 2014-2-15 12:58:41

milkyjing 发表于 2014-2-14 23:52
强力顶, 很赞的特效

请问该类特效脚本是如何使用~貌似方法不同于内置脚本,parse出错

QQ截图20140215125754.png

图片附件: QQ截图20140215125754.png (2014-2-15 12:58:33, 26.99 KB) / 下载次数 3453
http://tcax.org/forum.php?mod=attachment&aid=MTU2NHw3NzJhMjdiMXwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: milkyjing    时间: 2014-2-15 13:56:54

1208 发表于 2014-2-15 12:58
请问该类特效脚本是如何使用~貌似方法不同于内置脚本,parse出错

注意 < tcaxpy init = false >
< tcaxpy user = true >
< tcaxpy fin = false >

的设置




http://www.tcax.org/forum.php?mod=viewthread&tid=87
作者: 1208    时间: 2014-2-15 15:07:31

milkyjing 发表于 2014-2-15 13:56
注意 < tcaxpy init = false >
< tcaxpy user = true >
< tcaxpy fin = false >

tcc作了些修改
然后就变成这样了

QQ截图20140215150613.png

图片附件: QQ截图20140215150613.png (2014-2-15 15:07:16, 37.86 KB) / 下载次数 3431
http://tcax.org/forum.php?mod=attachment&aid=MTU2NXwxOWMxMDkzYXwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: fishfish    时间: 2014-2-27 17:23:09

1208 发表于 2014-2-15 15:07
tcc作了些修改
然后就变成这样了

我也是这样,而且我还多一行字:

图片附件: QQ截图20140227172644.png (2014-2-27 17:23:02, 37.44 KB) / 下载次数 3420
http://tcax.org/forum.php?mod=attachment&aid=MTU2N3w4ZWU1ZGIyMHwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: Alex    时间: 2014-3-2 13:26:27

I got same!

'module' object has no attribute 'tcaxPy_User'

< inherit ass header = false >
< k mode = normal >
< text layout = horizontal >
< tcaxpy init = false >
< tcaxpy user = true >
< tcaxpy fin = false >




作者: saiyaku    时间: 2014-3-2 19:15:38

< tcaxpy init = true >
< tcaxpy user = false >
< tcaxpy fin = true >
作者: 圆圆一位    时间: 2014-3-23 12:43:50

改成了
< tcaxpy init = true >
< tcaxpy user = false >
< tcaxpy fin = true >出现了以下错误,这是什么情况? QQ图片20140323124118.jpg

图片附件: QQ图片20140323124118.jpg (2014-3-23 12:43:20, 15.09 KB) / 下载次数 3443
http://tcax.org/forum.php?mod=attachment&aid=MTYxNXwzZDM5OGYwNnwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: 圆圆一位    时间: 2014-3-23 12:57:36

圆圆一位 发表于 2014-3-23 12:43
改成了
< tcaxpy init = true >
< tcaxpy user = false >

之前的错误好像是没放在内置特效里面,放了之后,还是有下面错误 QQ图片20140323125724.jpg

图片附件: QQ图片20140323125724.jpg (2014-3-23 12:57:18, 14.91 KB) / 下载次数 3438
http://tcax.org/forum.php?mod=attachment&aid=MTYxNnw0MmI5ZjU4NXwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: saiyaku    时间: 2014-3-23 14:13:02

圆圆一位 发表于 2014-3-23 12:57
之前的错误好像是没放在内置特效里面,放了之后,还是有下面错误

http://www.tcax.org/forum.php?mo ... &extra=page%3D1

更新一下
作者: 圆圆一位    时间: 2014-3-25 20:45:42

saiyaku 发表于 2014-3-23 14:13
http://www.tcax.org/forum.php?mod=viewthread&tid=582&extra=page%3D1

更新一下

QQ图片20140325204513.jpg 还出现错误了,这个对ass文件还有要求么?

图片附件: QQ图片20140325204513.jpg (2014-3-25 20:45:34, 14.4 KB) / 下载次数 3492
http://tcax.org/forum.php?mod=attachment&aid=MTYxOXw4YWNmMjM5YXwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: saiyaku    时间: 2014-3-25 23:43:37

圆圆一位 发表于 2014-3-25 20:45
还出现错误了,这个对ass文件还有要求么?

這個應該是你的k軸裡面 有k時間為0的
所以除0 錯誤了
作者: 圆圆一位    时间: 2014-3-26 20:37:55

saiyaku 发表于 2014-3-25 23:43
這個應該是你的k軸裡面 有k時間為0的
所以除0 錯誤了

感谢大神的耐心指点,把符号什么的删掉就好了,解析出来了,可是ass文件用Aegisub打开的时候打不开,出现错误 QQ图片20140326203107.jpg

图片附件: QQ图片20140326203107.jpg (2014-3-26 20:36:49, 12.18 KB) / 下载次数 3475
http://tcax.org/forum.php?mod=attachment&aid=MTYyMXw0MjE4ZDc3ZHwxNzMyNDcyMjE2fDB8MA%3D%3D


作者: saiyaku    时间: 2014-3-26 21:17:27

圆圆一位 发表于 2014-3-26 20:37
感谢大神的耐心指点,把符号什么的删掉就好了,解析出来了,可是ass文件用Aegisub打开的时候打不开,出现 ...

還是你k值沒打對 這次估計輸出null(空值)了

作者: 圆圆一位    时间: 2014-3-26 21:40:16

saiyaku 发表于 2014-3-26 21:17
還是你k值沒打對 這次估計輸出null(空值)了

纳尼,可是我是一个字一个字打的K值啊,其他的特效也用过是可以的啊,难道这个设的每个字的K值要相同么?
作者: mzlmcx    时间: 2014-3-26 21:50:46

圆圆一位 发表于 2014-3-26 21:40
纳尼,可是我是一个字一个字打的K值啊,其他的特效也用过是可以的啊,难道这个设的每个字 ...

你把K值贴出来吧
作者: 圆圆一位    时间: 2014-3-26 23:12:41

mzlmcx 发表于 2014-3-26 21:50
你把K值贴出来吧

因为手上只有这个打了K值的歌词,所以我一直都是用这个试的。。。。PS:我把空格、.、-都删了
  1. Dialogue: 0,0:00:31.68,0:00:34.22,叠圆,,0,0,0,,{\K45}你{\K45}是{\K45}我{\K45}的{\K74}Beautiful
  2. Dialogue: 0,0:00:34.22,0:00:38.62,叠圆,,0,0,0,,{\K180}hangover{\K180}hangover{\K80}yeah
  3. Dialogue: 0,0:00:38.62,0:00:41.66,叠圆,,0,0,0,,{\K60}你{\K45}是{\K45}我{\K45}的{\K100}Beautiful
  4. Dialogue: 0,0:00:41.66,0:00:47.20,叠圆,,0,0,0,,{\K250}hangover{\K250}hangover
  5. Dialogue: 0,0:00:48.97,0:00:51.34,叠圆,,0,0,0,,{\K45}闪{\K45}烁{\K45}的{\K45}灯{\K45}车
  6. Dialogue: 0,0:00:51.34,0:00:53.81,叠圆,,0,0,0,,{\K35}前{\K35}往{\K35}这{\K35}座{\K35}不{\K35}夜{\K35}城
  7. Dialogue: 0,0:00:53.81,0:00:55.68,叠圆,,0,0,0,,{\K60}Are{\K60}you{\K60}ready
  8. Dialogue: 0,0:00:55.68,0:00:58.41,叠圆,,0,0,0,,{\K45}在{\K45}此{\K45}一{\K45}决{\K45}胜{\K45}负
  9. Dialogue: 0,0:00:58.41,0:01:03.08,叠圆,,0,0,0,,{\K27}不{\K27}疾{\K27}不{\K27}徐{\K27}的{\K27}在{\K27}到{\K27}达{\K27}极{\K27}限{\K27}以{\K27}前{\K27}用{\K27}力{\K27}以{\K27}赴{\K27}吧
  10. Dialogue: 0,0:01:03.08,0:01:04.02,叠圆,,0,0,0,,{\K49}Let’s{\K45}go
  11. Dialogue: 0,0:01:04.02,0:01:08.19,叠圆,,0,0,0,,{\K34}播{\K34}放{\K34}着{\K34}的{\K38}radio{\K34}逐{\K34}渐{\K34}缩{\K34}短{\K34}的{\K34}距{\K34}离
  12. Dialogue: 0,0:01:08.19,0:01:11.16,叠圆,,0,0,0,,{\K90}oh{\K90}oh{\K90}oh
  13. Dialogue: 0,0:01:11.16,0:01:14.36,叠圆,,0,0,0,,{\K26}目{\K26}的{\K26}地{\K26}现{\K26}在{\K26}还{\K26}不{\K26}能{\K26}告{\K26}诉{\K26}你{\K26}哦
  14. Dialogue: 0,0:01:14.36,0:01:17.47,叠圆,,0,0,0,,{\K120}Honey{\K60}close{\K60}your{\K60}eyes
  15. Dialogue: 0,0:01:17.47,0:01:19.27,叠圆,,0,0,0,,{\K36}We‘re {\K36}gonna{\K36}get{\K36}down{\K36}down {\K36}down
  16. Dialogue: 0,0:01:19.27,0:01:21.27,叠圆,,0,0,0,,{\K40}give{\K40}me{\K40}love{\K40}love{\K40}love
  17. Dialogue: 0,0:01:21.27,0:01:24.51,叠圆,,0,0,0,,{\K36}我{\K36}寻{\K36}寻{\K36}觅{\K36}觅{\K36}追{\K36}求{\K36}的{\K36}lady
  18. Dialogue: 0,0:01:24.51,0:01:28.61,叠圆,,0,0,0,,{\K40}谁{\K40}也{\K40}没{\K40}能{\K40}阻{\K40}止{\K40}我{\K90}making {\K40}love
  19. Dialogue: 0,0:01:28.61,0:01:30.95,叠圆,,0,0,0,,{\K23}知{\K23}道{\K23}我{\K23}心{\K23}满{\K23}意{\K23}足{\K23}为{\K23}止{\K23}go
  20. Dialogue: 0,0:01:30.95,0:01:33.68,叠圆,,0,0,0,,{\K45}你{\K45}是{\K45}我{\K45}的{\K93}Beautiful
  21. Dialogue: 0,0:01:33.68,0:01:38.16,叠圆,,0,0,0,,{\K190}hangover{\K190}hangover{\K68}yeah
  22. Dialogue: 0,0:01:38.16,0:01:40.93,叠圆,,0,0,0,,{\K45}你{\K45}是{\K45}我{\K45}的{\K97}Beautiful
  23. Dialogue: 0,0:01:40.93,0:01:44.73,叠圆,,0,0,0,,{\K180}hangover{\K200}hangover
  24. Dialogue: 0,0:01:46.70,0:01:49.10,叠圆,,0,0,0,,{\K60}It’s{\K60}me{\K120}G.D
  25. Dialogue: 0,0:01:49.10,0:01:51.27,叠圆,,0,0,0,,{\K16}ma{\K16}ma{\K16}ma{\K16}ma{\K16}ma{\K20}my {\K52}beautiful{\K45}girl
  26. Dialogue: 0,0:01:51.27,0:01:53.01,叠圆,,0,0,0,,{\K40}1,2,3{\K40}TO{\K40}THE {\K49}4SHO
  27. Dialogue: 0,0:01:53.01,0:01:55.01,叠圆,,0,0,0,,{\K40}one{\K40}like{\K40}you{\K40}to{\K40}angel
  28. Dialogue: 0,0:01:55.01,0:01:57.81,叠圆,,0,0,0,,{\K25}there{\K25}ain‘t{\K25}nobody{\K25}can{\K25}do{\K25}them{\K25}things{\K25}you{\K25}do{\K25}so{\K25}true
  29. Dialogue: 0,0:01:57.81,0:01:59.85,叠圆,,0,0,0,,{\K40}I’m{\K40}so{\K50}excited{\K50}delighted
  30. Dialogue: 0,0:01:59.85,0:02:01.75,叠圆,,0,0,0,,{\K27}I{\K27}won’t{\K27}deny{\K27}it{\K27}nor{\K27}fight{\K27}it
  31. Dialogue: 0,0:02:01.75,0:02:03.02,叠圆,,0,0,0,,{\K21}Baby{\K21}you{\K21}got{\K21}what{\K21}I{\K21}need
  32. Dialogue: 0,0:02:03.02,0:02:04.59,叠圆,,0,0,0,,{\K21}got{\K21}me{\K21}jumping{\K21}jumping{\K21}off{\K21}my{\K21}feet
  33. Dialogue: 0,0:02:04.59,0:02:05.99,叠圆,,0,0,0,,{\K28}Baby{\K28}there‘s{\K28}no{\K28}playing{\K28}delaying
  34. Dialogue: 0,0:02:05.99,0:02:07.99,叠圆,,0,0,0,,{\K32}always{\K32}got{\K32}me{\K32}feeling{\K32}that{\K32}healing
  35. Dialogue: 0,0:02:07.99,0:02:09.73,叠圆,,0,0,0,,{\K32}Everyday{\K32}I’m{\K32}smiling{\K32}and{\K32}wilding
  36. Dialogue: 0,0:02:09.73,0:02:10.66,叠圆,,0,0,0,,{\K33}when{\K15}I {\K15}think {\K15}about {\K15}you
  37. Dialogue: 0,0:02:10.66,0:02:11.76,叠圆,,0,0,0,,{\K35}think {\K35}about{\K35}you
  38. Dialogue: 0,0:02:11.76,0:02:13.26,叠圆,,0,0,0,,{\K30}Got{\K30}me{\K30}flying{\K30}so{\K30}high
  39. Dialogue: 0,0:02:13.26,0:02:15.63,叠圆,,0,0,0,,{\K30}and{\K27}I{\K30}won’t{\K30}stop{\K30}bringing{\K30}and{\K30}bringing{\K30}that
  40. Dialogue: 0,0:02:15.63,0:02:16.43,叠圆,,0,0,0,,{\K23}B{\K23}I{\K23}G
  41. Dialogue: 0,0:02:16.43,0:02:17.43,叠圆,,0,0,0,,{\K30}T{\K30}O{\K30}P
  42. Dialogue: 0,0:02:17.43,0:02:18.84,叠圆,,0,0,0,,{\K28}Baby{\K28}that's{\K28}how{\K28}it{\K28}be
  43. Dialogue: 0,0:02:18.84,0:02:20.64,叠圆,,0,0,0,,{\K30}We‘re{\K30}gonna{\K30}get{\K30}down{\K30}down{\K30}down
  44. Dialogue: 0,0:02:20.64,0:02:22.61,叠圆,,0,0,0,,{\K39}give{\K39}me{\K39}love{\K39}love{\K39}love
  45. Dialogue: 0,0:02:22.61,0:02:26.04,叠圆,,0,0,0,,{\K38}我{\K38}寻{\K38}寻{\K38}觅{\K38}觅{\K38}追{\K38}求{\K38}的{\K38}lady
  46. Dialogue: 0,0:02:26.04,0:02:29.75,叠圆,,0,0,0,,{\K38}谁{\K38}也{\K38}没{\K38}能{\K38}阻{\K38}止{\K38}我{\K62}making {\K38}love
  47. Dialogue: 0,0:02:29.75,0:02:32.25,叠圆,,0,0,0,,{\K35}就{\K35}像{\K35}火{\K35}焰{\K35}般{\K35}灼{\K35}热
  48. Dialogue: 0,0:02:32.25,0:02:35.02,叠圆,,0,0,0,,{\K45}你{\K45}是{\K45}我{\K45}的{\K95}Beautiful
  49. Dialogue: 0,0:02:35.02,0:02:39.63,叠圆,,0,0,0,,{\K190}hangover{\K190}hangover{\K80}yeah
  50. Dialogue: 0,0:02:39.63,0:02:42.36,叠圆,,0,0,0,,{\K45}你{\K45}是{\K45}我{\K45}的{\K90}Beautiful
  51. Dialogue: 0,0:02:42.36,0:02:46.33,叠圆,,0,0,0,,{\K190}hangover{\K200}hangover
  52. Dialogue: 0,0:02:47.77,0:02:51.27,叠圆,,0,0,0,,{\K90}You{\K85}got{\K85}my{\K85}heart
  53. Dialogue: 0,0:02:51.27,0:02:52.71,叠圆,,0,0,0,, {\K36}爱{\K36}情{\K36}游{\K36}戏
  54. Dialogue: 0,0:02:52.71,0:02:55.44,叠圆,,0,0,0,,{\K52}makes{\K52}me{\K52}crazy{\K52}baby{\K52}yeah
  55. Dialogue: 0,0:02:55.44,0:02:57.91,叠圆,,0,0,0,,{\K100}Kiss{\K70}my{\K70}lips
  56. Dialogue: 0,0:02:57.91,0:03:01.95,叠圆,,0,0,0,,{\K70}让{\K70}我{\K70}疯{\K70}狂{\K120}360
  57. Dialogue: 0,0:03:01.95,0:03:05.92,叠圆,,0,0,0,,{\K39}我{\K39}所{\K39}渴{\K39}求{\K39}的{\K39}只{\K39}有{\K39}更{\K39}多{\K39}yeah
  58. Dialogue: 0,0:03:05.92,0:03:07.76,叠圆,,0,0,0,,{\K30}We‘re{\K30}gonna{\K30}get{\K30}down{\K30}down{\K30}down
  59. Dialogue: 0,0:03:07.76,0:03:09.66,叠圆,,0,0,0,,{\K38}give{\K38}me{\K38}love{\K38}love{\K38}love
  60. Dialogue: 0,0:03:09.66,0:03:13.03,叠圆,,0,0,0,,{\K37}我{\K37}寻{\K37}寻{\K37}觅{\K37}觅{\K37}追{\K37}求{\K37}的{\K39}lady
  61. Dialogue: 0,0:03:13.03,0:03:16.94,叠圆,,0,0,0,, {\K37}谁{\K37}也{\K37}没{\K37}能{\K37}阻{\K37}止{\K37}我{\K95}making {\K37}love
  62. Dialogue: 0,0:03:16.94,0:03:19.54,叠圆,,0,0,0,,{\K26}知{\K26}道{\K26}我{\K26}心{\K26}满{\K26}意{\K26}足{\K26}为{\K26}止 {\K26}go
  63. Dialogue: 0,0:03:19.54,0:03:21.71,叠圆,,0,0,0,, {\K40}你{\K40}是{\K40}我{\K40}的{\K57}Beautiful
  64. Dialogue: 0,0:03:21.71,0:03:26.68,叠圆,,0,0,0,,{\K200}hangover{\K200}hangover{\K97}yeah
  65. Dialogue: 0,0:03:26.68,0:03:29.45,叠圆,,0,0,0,,{\K45}你{\K45}是{\K45}我{\K45}的{\K97}Beautiful
  66. Dialogue: 0,0:03:29.45,0:03:32.55,叠圆,,0,0,0,,{\K140}hangover{\K170}hangover
复制代码

作者: saiyaku    时间: 2014-3-26 23:40:30

圆圆一位 发表于 2014-3-26 23:12
因为手上只有这个打了K值的歌词,所以我一直都是用这个试的。。。。PS:我把空格、.、-都删了 ...

我拿你這個K生成了一下 沒有問題
能考慮的錯誤 只有兩個
1 字體問題 你用simhei.ttf 生成試一下
2 你這個k有點長 我做的都是動畫OP 都只有1分半鐘 大概就15-20句歌詞 你這3倍都過了 生成文件會特別大
作者: 圆圆一位    时间: 2014-3-26 23:54:28

saiyaku 发表于 2014-3-26 23:40
我拿你這個K生成了一下 沒有問題
能考慮的錯誤 只有兩個
1 字體問題 你用simhei.ttf 生成試一下

3Q大神~我去试一下~~这次麻烦你啦~~~
作者: anonymyi    时间: 2017-2-13 10:03:56

tcc文件设置如下:
< inherit ass header = false >
< k mode = syllable >
< text layout = horizontal >
< tcaxpy init = true >
< tcaxpy user = false >
< tcaxpy fin = true >


# py settings

< py file = tcaxPy.py >    < beg line = 1 >    < end line = 0 >

目前脚本放在工程文件一起,请问parse报错如下是什么原因?

QQ图片20170213100047.png

图片附件: QQ图片20170213100047.png (2017-2-13 10:01:19, 21.31 KB) / 下载次数 2762
http://tcax.org/forum.php?mod=attachment&aid=MjA0N3wwNTdhMWU0YXwxNzMyNDcyMjE2fDB8MA%3D%3D






欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/) Powered by Discuz! X2