TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua
标题:
[youkaze]005_Natsume Yuujinchou ShiED
[打印本页]
作者:
四月一日 君寻
时间:
2012-2-23 22:11:31
标题:
[youkaze]005_Natsume Yuujinchou ShiED
本帖最后由 七海の游风 于 2012-2-24 10:44 编辑
from tcaxPy import *
def tcaxPy_Init():
global _FontFileName
global _FaceID
global _Fs
global _Height
global Font
_FontFileName = GetVal(val_FontFileName)
_FaceID = GetVal(val_FaceID)
_Fs = GetVal(val_FontSize)
_Height = GetVal(val_TextHeight)
Font = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
def tcaxPy_Fin():
FinFont(Font)
def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT,):
ASS_BUF = []
ass_main(ASS_BUF, SubL(_BT-8+_j*5,_BT+(_j+1)*5),pos(_X, _Y)+shad(2)+alpha4(0)+frx(90)+t(frx(360))+fad(200,0), _TXT)
ass_main(ASS_BUF, SubL(_BT+(_j+1)*5,_BT+_SK),pos(_X, _Y)+shad(2)+alpha4(0), _TXT)
ass_main(ASS_BUF, SubL(_BT+_SK,_ET-8+_j*5),pos(_X, _Y)+shad(2)+alpha4(0)+fad(0,300), _TXT)
if _i<4:
for i in range(20):
R=randint(-30,30)
ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT),move(_X+randint(-2,2),_Y+randint(-2,2),_X,_Y)+shad(0)+blur(0.7)+alpha1(180)+fscx(100+R)+fscy(100+R)+t(blur(0)+fscx(100)+fscy(100))+fad(0,100), _TXT)
if _i>3:
for i in range(_BT+_SK,_BT+_SK+_KT):
R=randint(-30,30)
ass_main(ASS_BUF, SubL(i, i+10),move(_X+randint(-2,2),_Y+randint(-2,2),_X,_Y)+shad(0)+blur(0.7)+alpha1(150)+fscx(100+R)+fscy(100+R)+fad(0,100), _TXT)
for i in range(_BT+_SK-20,_BT+_SK+_KT,30):
for k in range(3):
ass_main(ASS_BUF, SubL(i, i+150,50), fs(5)+blur(3)+color1('FFFFFF')+fad(30,300)+mov(_X+randint(30,60),_Y-randint(20,50),_X-randint(30,60),_Y+randint(20,50)), "●")
return (ASS_BUF, None)
复制代码
115下载预览:
http://115.com/file/dplhrw4l
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/)
Powered by Discuz! X2