- UID
- 3
- 积分
- 8169
- 帖子
- 259
- 主题
- 68
- 论坛币
- 5016
- 威望
- 54
- EP值
- 2533
- MP值
- 20
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 1097 小时
- 最后登录
- 2022-10-8
|
預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview- from tcaxPy import *
- def tcaxPy_Init():
- # Tips: initialize your global variables here
- global _FontSize
- 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_Main(_I, _J, _N, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = [] # used for saving ASS FX lines
- global _FontSize
- 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)
- if _I < 2:
- if _TXT[0] == "s" :
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X-30, _Y),"sunsh")
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X+26, _Y),"i")
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X+50, _Y),"ne")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X-30, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),"sunsh")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X+26, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),"i")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X+50, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),"ne")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X-30, _Y),"sunsh")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X+26, _Y),"i")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X+50, _Y),"ne")
- else:
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X, _Y),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X, _Y),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- if _TXT[0] == "て":
- A = 82
- B = 82+55
- ass_main(ASS_BUF, SubL(_BT+_SK+A,_BT+_SK+40+A,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+A,_BT+_SK+40+A,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+A,_BT+_SK+40+A,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+A,_BT+_SK+40+A,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+B,_BT+_SK+40+B,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+B,_BT+_SK+40+B,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+B,_BT+_SK+40+B,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK+B,_BT+_SK+40+B,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- elif _TXT == "Yeah":
- sb1=""
- for i in range (0,30):
- a = -0.15+0.01*i
- l = (pow((abs(a)/0.15),0.3)+0.5)*120*8
- sb1= sb1 + "m 0 0 l"+" "+str(int(l*cos(a)))+" "+str(int(l*sin(a)))+" 0 1 c "
- sb2 = ""
- for j in range (0,30):
- a = -0.15+0.01*j
- l = (pow((abs(a)/0.15),0.3)+0.5)*60*8
- sb2 = sb2 +"m 0 0 l"+" "+str(int(l*cos(a)))+" "+str(int(l*sin(a)))+" 0 1 c "
- tStep = 2
- for ptt0 in range(_BT+_SK - 10,_BT+_SK+_KT,tStep):
- startag = randint(0, 359)
- endag = startag + randint(0,9)/10 * randint(50, 100)
- ass_main(ASS_BUF, SubL(ptt0,ptt0 + 100,19), pos(_X, _Y)+ an(7)+fad(300, 300)+alpha1(0)+be(1)+shad(0)+bord(0)+color1("FF7C00")+ frz(startag) + t1(0,1000,frz(endag)),"{\p4}"+sb1)
- ass_main(ASS_BUF, SubL(ptt0,ptt0 + 100,20), pos(_X, _Y)+ an(7)+fad(300, 300)+alpha1(17)+be(1)+shad(0)+bord(0)+color1("FFFFFF")+ frz(startag) + t1(0,1000,frz(endag)),"{\p4}"+sb2)
- elif _I < 10:
- if _TXT[0] == "S" or _TXT[0] == "G" or _TXT[0] == "K":
-
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,30), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,30), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,30), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,30), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- if _TXT[0] !="" :
- ass_main(ASS_BUF, SubL(_BT+_J*5,_BT+_SK,22), pos(_X, _Y)+shad(0),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK,_ET-5*(_N-_J),27), pos(_X, _Y)+K(_KT)+shad(0)+color2("000000")+alpha1(255),_TXT)
- PIX = TextPix(pyFont, _TXT)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # left most position of the pixels in PIX
- InitPosY = _Y - int(_FontSize / 2 + 0.5) + PIX[0][1] # upper most position of the pixels in PIX
- X_list = []
- Y_list = []
- for h in range(PIX[1][1]):
- PosY = InitPosY + h # y-position of the current pixel
- for w in range(PIX[1][0]):
- PosX = InitPosX + w # x-position of the current pixel
- X = PosX-60+randint(-30,30)
- Y = PosY-50+randint(-15,15)
-
- 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 == 255:
- rnd = randint(-10,10)
- ass_main(ASS_BUF, SubL(int(_BT+_SK+w*(_KT/PIX[1][0])),int(_BT+_SK+100+rnd+w*(_KT/PIX[1][0])),25),mov(PosX,PosY,X,Y)+fad(0,300)+shad(0)+bord(0)+color3("FFFFFF")+color1("FFFFFF"), PixPt())
- ass_main(ASS_BUF, SubL(_BT+_SK,int(_BT+_SK+w*(_KT/PIX[1][0])),26),pos(PosX,PosY)+shad(0)+bord(0)+color3("FFFFFF")+color1("FFFFFF"), PixPt())
-
- elif _I < 14:
- if _TXT[0] == "s" :
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X-30, _Y)+shad(1)+blur(5)+bord(3)+color3("FFFFFF")+alpha1(255)+color1("FFFFFF")+fsc(100,130)+t1(200,_KT*10,fsc(100,100)),"sunsh")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X+26, _Y)+shad(1)+blur(5)+bord(3)+color3("FFFFFF")+alpha1(255)+color1("FFFFFF")+fsc(100,130)+t1(200,_KT*10,fsc(100,100)),"i")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X+50, _Y)+shad(1)+blur(5)+bord(3)+color3("FFFFFF")+alpha1(255)+color1("FFFFFF")+fsc(100,130)+t1(200,_KT*10,fsc(100,100)),"ne")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X-30, _Y),"sunsh")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X+26, _Y),"i")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X+50, _Y),"ne")
- elif _TXT[0] =="T":
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X, _Y)+shad(1)+blur(5)+bord(3)+color3("FFFFFF")+alpha1(255)+color1("FFFFFF")+fsc(100,130)+t1(200,_KT*10,fsc(100,100)),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X, _Y),_TXT)
- else:
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X, _Y)+shad(1)+blur(5)+bord(3)+color3("FFFFFF")+alpha1(255)+color1("FFFFFF")+fsc(130,130)+t1(200,_KT*10,fsc(100,100)),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X, _Y),_TXT)
- X = t1(0,100,alpha1(255)+alpha3(255))+t1(100,200,alpha1(0)+alpha3(0))+t1(200,300,alpha1(255)+alpha3(255))+t1(300,400,alpha1(0)+alpha3(0))+t1(400,500,alpha1(255)+alpha3(255))+t1(500,600,alpha1(0)+alpha3(0))+t1(600,700,alpha1(255)+alpha3(255))+t1(700,800,alpha1(0)+alpha3(0))+t1(800,900,alpha1(255)+alpha3(255))+t1(900,1000,alpha1(0)+alpha3(0))
- for i in range(29):
- R = RandCir(_X+3,_Y+3, 45)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,20), mov(_X+3,_Y+3,R[0],R[1])+fad(40,400)+bord(2.5)+blur(2.5)+fsc(100,100)+color3("FFFFFF")+color1("FFFFFF")+shad(0),'{\p2}m 0 -5 b -8 7 8 7 0 -5{\p0}')
- else:
- sb1=""
- for i in range (0,30):
- a = -0.15+0.01*i
- l = (pow((abs(a)/0.15),0.3)+0.5)*120*8
- sb1= sb1 + "m 0 0 l"+" "+str(int(l*cos(a)))+" "+str(int(l*sin(a)))+" 0 1 c "
- sb2 = ""
- for j in range (0,30):
- a = -0.15+0.01*j
- l = (pow((abs(a)/0.15),0.3)+0.5)*60*8
- sb2 = sb2 +"m 0 0 l"+" "+str(int(l*cos(a)))+" "+str(int(l*sin(a)))+" 0 1 c "
- tStep = 2
- for ptt0 in range(_BT+_SK - 10,_BT+_SK+_KT,tStep):
- startag = randint(0, 359)
- endag = startag + randint(0,9)/10 * randint(50, 100)
- ass_main(ASS_BUF, SubL(ptt0,ptt0 + 100,19), pos(_X, _Y)+ an(7)+fad(300, 300)+alpha1(0)+be(1)+shad(0)+bord(0)+color1("C400C4")+ frz(startag) + t1(0,1000,frz(endag)),"{\p4}"+sb1)
- ass_main(ASS_BUF, SubL(ptt0,ptt0 + 100,20), pos(_X, _Y)+ an(7)+fad(300, 300)+alpha1(17)+be(1)+shad(0)+bord(0)+color1("FFFFFF")+ frz(startag) + t1(0,1000,frz(endag)),"{\p4}"+sb2)
- if _TXT[0] == "s" :
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X-30, _Y),"sunsh")
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X+26, _Y),"i")
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X+50, _Y),"ne")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X-30, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),"sunsh")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X+26, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),"i")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X+50, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),"ne")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X-30, _Y),"sunsh")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X+26, _Y),"i")
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X+50, _Y),"ne")
- else:
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,22), pos(_X, _Y),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT,22), pos(_X, _Y)+shad(0)+blur(5)+bord(3)+color3("FFFFFF")+color1("FFFFFF"),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,22), pos(_X, _Y),_TXT)
-
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(204)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(80,80)+t1(0,400,fsc(160,160)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(2)+blur(1)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+40,23), pos(_X, _Y)+an(7)+shad(0)+alpha1(255)+alpha3(170)+fad(40,450)+color3("FFFFFF")+bord(5)+blur(2)+be(1)+fsc(60,60)+t1(0,400,fsc(20,20)),"{\p2}m 59 0 b 59 -79 -59 -79 -59 0 -59 79 59 79 59 0{\p0}")
- for i in range(29):
- R = RandCir(_X+3,_Y+3, 45)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+100,21), mov(_X+3,_Y+3,R[0],R[1])+fad(40,400)+bord(2.5)+blur(2.5)+fsc(100,100)+color3("FFFFFF")+color1("FFFFFF")+shad(0),'{\p2}m 0 -5 b -8 7 8 7 0 -5{\p0}')
- return (ASS_BUF, None)
复制代码 |
-
1
查看全部评分
-
|