- UID
- 319
- 积分
- 3718
- 帖子
- 260
- 主题
- 10
- 论坛币
- 1147
- 威望
- 29
- EP值
- 628
- MP值
- 5
- 阅读权限
- 80
- 注册时间
- 2012-2-26
- 在线时间
- 222 小时
- 最后登录
- 2019-1-1
|
本帖最后由 忘却の小伊 于 2012-3-18 14:48 编辑
这个是咱第一次尝试自己写的py..
效果感觉不尽如意...
贴出来让大家指导一下咱...- from tcaxPy import *
- def tcaxPy_Init():
- 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_Fin():
- FinFont(pyFont)
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = []
- TCS_BUF = []
- ass_main(ASS_BUF, SubL(_BT+_SK, _BT+_SK+_KT-5,30),fad(300,300)+pos(_X, _Y)+t(0,200,fsc(120,120)), _TXT)
- ass_main(ASS_BUF, SubL( _BT+_SK, _ET,20),fad(300,300)+pos(_X, _Y), _TXT)
- for h in range (10,15):
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK+_KT,30),fad(300,300)+pos(_X+randint(-25,25), _Y+randint(-25,25))+color1("F5D5FF")+color3("FFFFFF")+alpha3(100)+bord(1)+blur(3)+fsc(160,160)+t(fry(randint(-720,720))+fry(randint(-720,720))+frz(randint(-720,720))), "{\p2}m 3 9 b -6 9 -7 -7 2 -12 7 -8 6 1 3 9{\p0}")
- for i in range (10,15):
- ass_main(ASS_BUF, SubL(_BT,_ET,30),fad(300,300)+pos(_X+randint(-25,25), _Y+randint(-25,25))+color1("F5D5FF")+color3("FFFFFF")+alpha3(100)+color4("F5D5FF")+alpha4(100)+bord(1)+blur(3)+fsc(160,160)+t(fry(randint(-720,720))+fry(randint(-720,720))+frz(randint(-720,720))), "{\p2}m 3 9 b -6 9 -7 -7 2 -12 7 -8 6 1 3 9{\p0}")
- for j in range (10,15):
- ass_main(ASS_BUF, SubL(_BT+_SK,_ET,30),fad(300,300)+mov(_X+randint(-20,20),_Y+randint(-20,20),_X+randint(500,800),_Y+randint(-100,600))+color1("F5D5FF")+color3("FFFFFF")+alpha3(100)+color4("F5D5FF")+alpha4(100)+bord(1)+blur(3)+fsc(130,130)+t(fry(randint(-720,720))+fry(randint(-720,720))+frz(randint(-720,720))), "{\p2}m 3 9 b -6 9 -7 -7 2 -12 7 -8 6 1 3 9{\p0}")
- ass_main(ASS_BUF,SubL(_BT,_ET),fad(300,300)+an(3)+pos(_X+70,_Y+25)+frx(randint(-45,45))+fry(randint(-45,45))+frz(randint(-45,45))+color1("AE5452")+alpha1(120)+color3("FFFFFF")+alpha3(50)+alpha4(250)+blur(3),"{\p1}m 1 1 b -10 1 -11 0 -16 0 b -5 13 -11 14 -20 3 b -23 1 -27 -2 -32 -1 b -32 2 -32 1 -31 3 b -17 13 -22 15 -32 8 b -40 16 -49 14 -37 7 b -36 5 -37 2 -37 -1 b -41 2 -43 3 -50 1 b -50 -1 -50 -3 -50 -6 b -45 -5 -39 -5 -35 -7 b -34 -10 -36 -11 -36 -14 b -46 -24 -42 -25 -35 -17 b -31 -27 -26 -27 -30 -19 b -22 -11 -25 -9 -32 -16 b -32 -13 -31 -11 -31 -6 b -27 -5 -24 -3 -21 -3 b -19 -5 -18 -11 -20 -13 b -27 -25 -27 -28 -17 -17 b -12 -23 -1 -24 -15 -14 b -3 -13 -8 -7 -14 -10 b -17 -8 -16 -7 -1{\p0}")
- ass_main(ASS_BUF,SubL(_BT,_ET),fad(300,300)+an(3)+pos(_X+70,_Y+50)+frx(randint(-45,45))+color1("AE5452")+alpha1(120)+color3("FFFFFF")+alpha3(50)+alpha4(250)+blur(3),"{\p1}m 1 1 b -10 1 -11 0 -16 0 b -5 13 -11 14 -20 3 b -23 1 -27 -2 -32 -1 b -32 2 -32 1 -31 3 b -17 13 -22 15 -32 8 b -40 16 -49 14 -37 7 b -36 5 -37 2 -37 -1 b -41 2 -43 3 -50 1 b -50 -1 -50 -3 -50 -6 b -45 -5 -39 -5 -35 -7 b -34 -10 -36 -11 -36 -14 b -46 -24 -42 -25 -35 -17 b -31 -27 -26 -27 -30 -19 b -22 -11 -25 -9 -32 -16 b -32 -13 -31 -11 -31 -6 b -27 -5 -24 -3 -21 -3 b -19 -5 -18 -11 -20 -13 b -27 -25 -27 -28 -17 -17 b -12 -23 -1 -24 -15 -14 b -3 -13 -8 -7 -14 -10 b -17 -8 -16 -7 -1{\p0}")
- for k in range(10):
- ass_main(ASS_BUF, SubL(_ET, _ET+300,30),an(7)+fad(300,300)+color1("F5D5FF")+color3("FFFFFF")+alpha3(100)+color4("F5D5FF")+alpha4(100)+bord(1)+blur(3)+fsc(160,160)+frx(randint(-360,360))+t1(0,500,frx(randint(-360,360)))+fry(randint(-360,360))+t1(0,500,fry(randint(-360,360)))+frz(randint(-360,360))+t1(0,500,frz(randint(-360,360)))+mov(_X+randint(-25,25),_Y+randint(-25,25),_X+randint(-100,100),_Y+randint(-100,100)),"{\p2}m 3 9 b -6 9 -7 -7 2 -12 7 -8 6 1 3 9{\p0}")
- return (ASS_BUF, TCS_BUF)
复制代码 视频预览
|
-
2
查看全部评分
-
|