- UID
- 692
- 积分
- 83
- 帖子
- 19
- 主题
- 6
- 论坛币
- 990
- 威望
- 0
- EP值
- 247
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2012-9-4
- 在线时间
- 30 小时
- 最后登录
- 2013-1-16
|
本帖最后由 250775115 于 2013-1-5 09:08 编辑
2个边缘生硬 深橙色跟灰颜色,我怎么改blur 都没反应效果。比如 我们的夏天大神 白色边缘显示模糊。
eft_fluf001代码如下- from tcaxPy import *
- def tcaxPy_Init():
- global _FS, _FD, _Blur
- _FS = GetVal(val_FontSize)
- _FD = 1000 / GetVal(val_FXFPS)
- _Blur = GetVal(val_Blur)
- def tcaxPy_Fin():
- pass
- def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
- ASS_BUF = []
- TCAS_BUF = []
-
- GAP = 1 #控制标准时间差
- FAC = 1 #控制字间时间差
- DUR = 10 * _FD #单效果持续时间
-
- _1x = _x - _a / 2 #转换,因为该存在和表现效果使用an1
- _1y = _y + _FS / 2
- TS = _start + _j * FAC * _FD / 10 - GAP * _FD / 10
- TE = _end - (_n - _j - 1) * FAC * _FD / 10 + GAP * _FD / 10
-
- STYLE = (an(1) + pos(_1x,_1y) +
- bord(1) + blur(6) + color3('35F04D') + color1('9C5E01'))
- STYLE = (an(1) + pos(_1x,_1y))
- if _Blur > 0:
- EFT += blur(_Blur)
- EFT = (t((_start+_elapk-TS)*10,(_start+_elapk-TS)*10+_k/3*10,color1('29EBF9'))+
- t((_start+_elapk-TS)*10,(_start+_elapk-TS)*10+_k/2*10,fscy(80))+
- t((_start+_elapk-TS)*10+_k/2*10,(_start+_elapk-TS)*10+_k*10,fscy(100))+
- t((_start+_elapk-TS)*10+_k/3*10,(_start+_elapk-TS)*10+_k*10,color3('1174AD')))
- ass_main(ASS_BUF, SubL(TS,TE,15),STYLE+EFT,_txt)
-
- return (ASS_BUF, None)
复制代码 TCC代码如下- # tcc file version
- < tcc file version = 1.0 >
- # mode configuration
- < inherit ass header = false >
- < k mode = normal >
- < text layout = horizontal >
- < tcaxpy init = true >
- < tcaxpy user = false >
- < tcaxpy fin = true >
- # py settings
- < py file = !in_002.py > < beg line = 1 > < end line = 0 >
- < py file = ext_fluf001.py > < beg line = 1 > < end line = 0 >
- < py file = eft_fluf001.py > < beg line = 1 > < end line = 0 >
- < py file = !out_Mo_001.py > < beg line = 1 > < end line = 0 >
- # main settings
- < k-timed ass file = Em love songs_k.ass >
- < font file = upcjb.ttf > < font face id = 1 > < font size = 42 >
- < fx width = 1280 > < fx height = 720 > < fx fps = 29.970 >
- < alignment = 2 >
- < x offset = 0 > < y offset = 36 >
- < spacing = 0 > < space scale = 1.0 >
- # style settings
- < font face name = "" >
- < bord = 2 > < shad = 1 >
- < primary color = 666666 > < secondary color = FFFF00 > < outline color = c9c9c9 > < back color = 000000 >
- < primary alpha = 0 > < secondary alpha = 255 > < outline alpha = 0 > < back alpha = 155 >
- # additional settings
- < blur = 0.0 >
复制代码 |
|