- UID
- 702
- 积分
- 1002
- 帖子
- 241
- 主题
- 12
- 论坛币
- 2292
- 威望
- 2
- EP值
- 520
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2012-9-9
- 在线时间
- 281 小时
- 最后登录
- 2014-4-1
|
- rom tcaxPy import *
- def tcaxPy_Init():
- global _FD
- global _Fs
- global _Blur
- global _BT
- _Blur = GetVal(val_Blur)
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = GetVal(val_FontSize)
- _BT = GetVal(val_BegTime)
- def tcaxPy_Fin():
- pass
- def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
- ASS_BUF = [] # used for saving ASS FX lines
- TCAS_BUF = [] # used for saving TCAS FX raw data
-
- ass_main(ASS_BUF, SubL(_BT + _j * _FD / 10 + 20, _BT + _j * _FD / 10), move(_x+25,_y,_x,_y),
- _txt)
-
- _1X = _x - int(_a / 2 + 0.5)
- _1y = _y - int(_Fs / 2 + 0.5)
- for i in range(0,_a,3):
- for j in range(0,Fs,3):
- COLOR = ["2C6FE4", "D5F64D", "FA5CE1", "5DFDB6", "635AF9", "FFFFFF"]
- COLOR1 = color2(COLOR[randint(0,5)])
- R = randint(-10,10)
- ix = randint(-20,25)
- iy = randint(20,40)
- iMOVE = move(_x,_y,_x+ix,_y+iy,7,10 * _k)
- iCLIP = clip(_1X+i,_1Y+j,_1X+i+7,_1Y+j+7)+t(7,10 * _k,clip
- (_1X+i+ix,_1Y+j+iy,_1X+i+7+ix,_1X+j+7+iy))
- EFT = iMOVE+iCLIP+fad(100,0)+COLOR1+blur(_Blur)
- ass_main(ASS_BUF,SubL(_BT + _j * _FD / 10 + R, _ET),EFT,_txt)
-
-
- EFT1 = alpha1(HexToDec('AA')) + alpha3(HexToDec('AA')) + color1('FFFFFF') + \
- bord(5) + blur(5) + t(0, 100, bord(3) + blur(3)) + fad(0, 200)
- EFT2 = alpha1(HexToDec('AA')) + alpha3(HexToDec('00')) + color1('FFFFFF') + color3('FFFFFF') + \
- bord(3) + blur(3) + t(0, 100, bord(1) + blur(1) + alpha3(HexToDec('44'))) + fad(0, 200)
- for k in range(2):
- num = 80 # 曲线上点的个数
- xs = _x - 40 # 开始点
- ys = _y - 40
- xc1 = _x # 控制点1
- yc1 = _y
- zc1 = _z + 30
- xc2 = _x + 40 # 控制点2
- yc2 = _y + 40
- zc2 = _z
- xe = _x # 结束点
- ye = _y
- num = 80
- ixs = _x + 40 # 开始点
- iys = _y - 40
- ixc1 = _x # 控制点1
- iyc1 = _y
- izc1 = _z - 30
- ixc2 = _x - 40 # 控制点2
- iyc2 = _y + 40
- izc2 = _z + 30
- ixe = _x # 结束点
- iye = _y
- points1 = Bezier3(num,xs,ys,xe,ye,xc1,yc1,zc1,xc2,yc2,zc2)
- points2 = Bezier3(num,ixs,iys,ixe,iye,ixc1,iyc1,izc1,ixc2,iyc2,izc2)
- for i in range(num):
- POS1 = pos(points1[i][0], points1[i][1])
- POS2 = pos(points2[i][0], points2[i][1])
- EFT = POS1 + EFT1 + color3('5DFDB6')
- ass_main(ASS_BUF, SubL(_BT + elapk - 20 + i, _BT + _j * _FD / 10 + R, 15, pix_Style), EFT,
- pixPt())
- EFT = POS2 + EFT2
- ass_main(ASS_BUF, SubL(_BT + elapk - 20 + i, _BT + _j * _FD / 10 + R, 15, pix_Style), EFT,
- pixPt())
- #############################
- return (ASS_BUF, TCAS_BUF)
复制代码 啊呜。。。下午想了4个小时都不会弄(T.T)。。。不会链接时间。。偶就这么笨么。
嘎哦。。。这就是偶下午写的。。主要是在想时间。。。偶想要的特效是。。曲线生成的时间是K值开始的时间呢。。0, 7 * _k的时间是曲线的存在时间。。。8, 10 * _k是字幕变成粒子然后下落的时间。。。。。可是偶总是弄不明白时间的问题(T.T)。。。还有曲线不可以在Z轴上移动吗。。偶想让曲线在字幕的上方在字幕后面绕过来。。然后到底下。。。。。
特效:曲线把字幕碰碎成粒子 |
|