- UID
- 9
- 积分
- 4251
- 帖子
- 293
- 主题
- 40
- 论坛币
- 8462
- 威望
- 29
- EP值
- 1646
- MP值
- 8
- 阅读权限
- 100
- 注册时间
- 2011-8-3
- 在线时间
- 151 小时
- 最后登录
- 2022-8-8
|
坑掉的内置ext_you005
这个本来是弄成内置的 因为是内置脚本in main out 几个脚本都是分开的 字幕层的设置就比较蛋疼了所以就不当内置发了
就丢这里了
- ################################################################################
- ### description:
- ### fade in with font size animation
- from tcaxPy import *
- def tcaxPy_Init():
- global _FD # frame duration, in millisecond
- global _Fs
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = GetVal(val_FontSize)
-
- 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
-
- ts = _start + _elapk # start time, in semi-second
- te = _start + _elapk + _k # end time, in semi-second
- YK = randint(-5,5)
- SCOLOR1 = color1('D8D6FF') #颜色可以自己改
- for i in range(8):
- ass_main(ASS_BUF, SubL(ts+20-i*8,te,2),an(7)+pos(_x,_y)+fad(200,0)+frz(i*45)+bord(0)+shad(0)+SCOLOR1 + p(2), "m 0 -6 b 7 -17 11 -26 2 -44 b -7 -31 -8 -18 0 -7")
- ass_main(ASS_BUF, SubL(te,te+20+YK,2),an(7)+pos(_x,_y)+frz(i*45)+bord(0)+shad(0)+SCOLOR1 + p(2), "m 0 -6 b 7 -17 11 -26 2 -44 b -7 -31 -8 -18 0 -7")
- ass_main(ASS_BUF, SubL(te+20+YK,te+70+_j*5,2),an(7)+mov(_x,_y,_x-40+randint(-20,20),_y+20+randint(-20,20))+fad(0,200+randint(-20,50))+frz(i*45)+t(frz(0+randint(0,360))+frx(0+randint(0,360))+fry(0+randint(0,360)))+bord(0)+shad(0)+SCOLOR1 + p(2), "m 0 -6 b 7 -17 11 -26 2 -44 b -7 -31 -8 -18 0 -7")
-
- return (ASS_BUF, TCAS_BUF)
复制代码 |
-
1
查看全部评分
-
|