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

 找回密码
 新人加入
楼主: Alex
打印 上一主题 下一主题

[已解决] Apply script! [复制链接]

Rank: 4

5#
发表于 2013-9-8 21:07:52 |只看该作者
本帖最后由 Alex 于 2013-9-8 21:09 编辑

thank you

this is my first FX by using TCAX
D files : http://www.speedyshare.com/EXSu9/test-s.zip

I used showjim old script, to start with TCAX
  1.     dx, dy = _x, _y

  2.     if _j == 0:
  3.         global infad
  4.         infad = 0

  5.     c1, c3 = "\\1c&HFFFFFF&", "\\3c&HFFFFFF&"
  6.     dur2 = _k * 20 + infad

  7.     line_fx = "\\bord1\\blur2\\3a&H30&"
  8.     text = "{\\an5%s%s\\move(%f1.2,%f1.2,%f1.2,%f1.2)\\fad(%f1.2,0)\\org(%f1.2,%f1.2)%s}%s" % (c1,c3,dx+70,dy,dx,dy,infad/2, dx,dy, line_fx,_txt)
  9.     ass_main(ASS_BUF, SubL(_start - 200 + infad, _start - 8 + infad, 2), '', text)

  10.     text = "{\\an5%s%s\\bord1\\blur2\\3a&H30&\\move(%f1.2,%f1.2,%f1.2,%f1.2)%s}%s" % (c1,c3,dx,dy,dx,dy,line_fx,_txt)=D
  11.     ass_main(ASS_BUF, SubL(_start - 8 + infad, _start + _elapk , 2), '', text)
  12.     infad += 50 / _n

  13.     text = "{\\an5%s%s\\bord1\\blur2\\3a&H30&\\move(%f1.2,%f1.2,%f1.2,%f1.2)\\t(\\fscx150\\fscy150)\\t(\\alpha&H%d&)%s} %s" % (c1,c3,dx, dy, dx ,dy,dur2,line_fx,_txt)
  14.     ass_main(ASS_BUF, SubL(_start + _elapk, _start + _elapk + _k*1.5, 3), '', text)
复制代码
thank you =D

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

地板
发表于 2013-9-8 18:37:02 |只看该作者
Alex 发表于 2013-9-8 14:58
I have another question

What is the best position for _x & _y to use it for romaji (English) ?

I think this script can also be applied on romaji karaoke files without modification :)

So you started using TCAX? cool~

Rank: 4

板凳
发表于 2013-9-8 14:58:20 |只看该作者
I have another question

What is the best position for _x & _y to use it for romaji (English) ?

  1.     dx = _x  
  2.     dy = _y
复制代码

Rank: 4

沙发
发表于 2013-9-8 12:32:21 |只看该作者
本帖最后由 Alex 于 2013-9-8 12:41 编辑

Anyway

I found the solution,  I have to change  end line number


< py file = bezier.py >     < beg line = 1 >    < end line = 5 >
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-5-19 14:06

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH