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

标题: [SAI]016_xxxholicovaED [打印本页]

作者: saiyaku    时间: 2011-10-22 19:05:26     标题: [SAI]016_xxxholicovaED

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


  2. def tcaxPy_Init():
  3.     # Tips: initialize your global variables here
  4.     global _FontSize
  5.     global pyFont
  6.     _FontSize = GetVal(val_FontSize)
  7.     pyFont    = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)

  8. def tcaxPy_Main(_I, _J, _N, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
  9.     ASS_BUF = []        

  10.     for j in range(_BT,_ET-20,80):
  11.        ass_main(ASS_BUF, SubL(j,j+77,2),pos(_X,_Y)+fad(5,20)+color1("FFFFFF")+bord(0)+be(1),_TXT)


  12.     for i in range(_BT+_SK-5,_BT+_SK+_KT):
  13.         ass_main(ASS_BUF, SubL(i,i+35,70),mov(_X,_Y,_X+randint(-5,5),_Y+randint(-5,5))+fad(0,200)+alpha1(170)+color1("FFFFFF")+bord(0)+blur(1),_TXT)


  14.     ass_main(ASS_BUF, SubL(_BT-10000,_ET,1),color1("000000")+bord(0),"{\\p1\\fscx10000\\fscy1000\\an8\\pos(1448,0)} m -12 -5 l 9 -5 l 9 5 l -12 5 ")



  15.     return (ASS_BUF,None)


  16. def tcaxPy_Fin():
  17.     # Tips: finalize your global variables here
  18.     FinFont(pyFont)
复制代码





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