- UID
- 215
- 积分
- 15394
- 帖子
- 1163
- 主题
- 27
- 论坛币
- 428
- 威望
- 125
- EP值
- 1992
- MP值
- 26
- 阅读权限
- 100
- 注册时间
- 2011-10-13
- 在线时间
- 668 小时
- 最后登录
- 2018-6-25
|
本帖最后由 渣渣疯子 于 2012-3-2 21:48 编辑
- from tcaxPy import *
- def tcaxPy_Init():
- global _FD # frame duration, in millisecond
- global _Fs
- global pyFont
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = 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
- Color = ("BF4E2E", "E6BD2D", "E6D728","F4650E", "DADB84")
-
- if _i < 2:
- for j in range(_BT-15,_BT+_SK,20):
- for i in range(3):
- ass_main(ASS_BUF,SubL(j+randint(-15,20),j+40+randint(-10,20)), an(5)+move(_X+randint(-20,20),_Y-30,_X+randint(-20,20),_Y+30)+fsc(randint(10,40),randint(10,20))+alpha1(randint(0,175))+alpha3(randint(0,175))+frz(randint(-720,720))+color1(Color[randint(0,3)])+color3(Color[randint(0,3)])+bord(1)+be(4)+alpha4(255),"{\p1}m 69 67 l 69 67 l 69 67 l 69 63 l 69 59 l 70 56 l 72 58 l 76 49 l 74 48 l 76 44 l 77 43 l 71 34 l 67 21 l 67 17 l 71 19 l 77 29 l 81 40 l 87 28 l 85 23 l 84 16 l 86 15 l 89 19 l 90 25 l 95 14 l 103 5 l 100 16 l 95 26 l 99 26 l 103 28 l 99 31 l 94 30 l 86 43 l 95 42 l 106 45 l 103 49 l 93 49 l 86 48 l 86 50 l 84 53 l 82 52 l 73 68 l 76 69 l 88 68 l 88 66 l 94 66 l 96 67 l 98 58 l 108 48 l 111 51 l 110 56 l 104 63 l 100 68 l 113 68 l 114 64 l 119 60 l 120 62 l 120 67 l 117 69 l 128 69 l 137 72 l 134 73 l 127 74 l 117 74 l 120 79 l 120 83 l 117 82 l 114 79 l 113 74 l 100 75 l 105 84 l 108 84 l 109 86 l 108 86 l 111 95 l 111 100 l 106 97 l 102 91 l 95 78 l 92 78 l 90 75 l 73 75 l 82 91 l 83 90 l 86 94 l 86 96 l 86 94 l 97 95 l 100 96 l 101 98 l 99 102 l 96 104 l 94 104 l 94 103 l 85 101 l 92 113 l 97 113 l 98 115 l 98 116 l 94 116 l 98 126 l 100 131 l 100 134 l 97 131 l 90 119 l 87 123 l 85 122 l 86 117 l 88 116 l 82 104 l 79 112 l 80 114 l 78 117 l 70 119 l 69 114 l 76 102 l 78 101 l 75 95 l 77 94 l 69 79 l 67 82 l 69 85 l 66 90 l 63 88 l 61 92 l 61 96 l 59 101 l 57 100 l 60 102 l 64 109 l 68 117 l 68 123 l 64 122 l 61 119 l 59 119 l 57 116 l 59 114 l 55 104 l 52 110 l 50 116 l 48 118 l 51 120 l 52 124 l 52 126 l 49 125 l 46 122 l 42 129 l 40 134 l 35 136 l 36 131 l 37 127 l 43 119 l 38 119 l 36 117 l 37 116 l 41 115 l 44 116 l 51 102 l 42 103 l 40 106 l 38 106 l 36 105 l 36 103 l 33 101 l 31 99 l 35 96 l 39 96 l 48 96 l 50 98 l 52 98 l 52 96 l 54 92 l 56 92 l 58 86 l 56 84 l 60 80 l 61 80 l 66 74 l 61 75 l 58 78 l 55 78 l 53 77 l 53 75 l 46 75 l 47 76 l 46 77 l 42 77 l 36 89 l 34 93 l 29 95 l 27 92 l 27 88 l 27 85 l 28 83 l 32 83 l 37 75 l 24 75 l 24 76 l 21 81 l 18 82 l 17 80 l 18 77 l 20 74 l 10 74 l 2 72 l 6 70 l 20 70 l 18 67 l 17 64 l 18 61 l 20 62 l 22 65 l 24 68 l 23 69 l 37 70 l 32 62 l 28 62 l 27 60 l 28 56 l 27 52 l 29 49 l 31 49 l 35 53 l 41 65 l 41 67 l 45 68 l 53 69 l 53 67 l 54 65 l 58 66 l 60 68 l 64 69 l 61 66 l 58 64 l 57 58 l 54 52 l 52 53 l 51 50 l 51 49 l 46 50 l 38 50 l 31 47 l 34 42 l 36 41 l 38 39 l 41 39 l 42 42 l 45 42 l 50 43 l 44 31 l 44 32 l 38 32 l 35 30 l 37 27 l 41 27 l 44 28 l 38 20 l 35 12 l 35 6 l 38 10 l 43 16 l 46 24 l 48 20 l 51 19 l 52 23 l 50 27 l 48 27 l 55 40 l 57 32 l 56 29 l 58 27 l 60 26 l 61 24 l 65 25 l 67 28 l 63 39 l 61 43 l 59 43 l 61 50 l 61 51 l 65 58 l 66 56 l 68 56 l 68 60 l 67 62 {\p0}")
- ass_main(ASS_BUF,SubL(_BT-15+_j*5,_BT+15+_j*5,1), an(2)+pos(_X,_Y-_Fs)+be(3)+frx(-90)+animation(frz(0))+bord(2)+color1("FFFC7E")+color3("E68029"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+15+_j*5,_BT+_SK,1), an(5)+pos(_X,_Y)+be(3)+bord(2)+color1("FFFC7E")+color3("E68029"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT/2,1), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(120,120))+be(15)+blur(2)+bord(2)+color1("FFFC7E")+color3("CCCCCC"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT/2,_BT+_SK+_KT,1), an(5)+pos(_X,_Y)+fsc(120,120)+animation(fsc(100,100))+be(15)+blur(2)+bord(2)+color1("FFFC7E")+color3("CCCCCC"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET,1), an(5)+pos(_X,_Y)+be(3)+bord(2)+color1("FFFC7E")+color3("CCCCCC"), _TXT)
- if _i > 1 and _i < 6:
- ass_main(ASS_BUF,SubL(_BT,_BT+_SK,1), an(5)+pos(_X,_Y)+color1("FFFC7E")+color3("E68029")+bord(2)+be(2), _TXT)
- for k in range(_Fs):
- Clip = clip(int(_X-_A / 2), int(_Y-_Fs/2+k), int(_X+_A/2), int(_Y-_Fs/2+k+1))
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+(_KT)/_Fs*k,1), pos(_X,_Y)+Clip+color1("FFFC7E")+color3("E68029")+bord(2)+be(2), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK+(_KT)/_Fs*k,_ET,1), pos(_X+randint(-1,1),_Y)+Clip+color1("FFFC7E")+color3("CCCCCC")+bord(3), _TXT)
- for j in range(_BT,_BT+_SK+_KT,20):
- for i in range(5):
- ass_main(ASS_BUF,SubL(j-15+randint(0,20),j+35+randint(-10,20)), an(5)+move(_X+randint(-20,20),_Y-30,_X+randint(-20,20),_Y+20)+fsc(randint(1,7),randint(1,7))+bord(3)+be(15)+blur(3)+alpha1(randint(50,175))+color1("HDADB84")+color3("CCCCCC"), "{\p2}m -70 0 b -70 -45 -38 -84 -1 -84 b 36 -85 68 -46 68 -2 b 69 43 37 83 1 83 b -38 83 -70 45 -70 0 {\p0}")
- if _i == 6:
- ass_main(ASS_BUF,SubL(_BT,_BT+_SK), an(5)+pos(_X,_Y)+be(3)+bord(2)+color1("FFFC7E")+color3("E68029"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT/2), an(5)+pos(_X,_Y)+fsc(100,100)+animation(fsc(120,120))+be(3)+bord(2)+color1("FFFC7E")+color3("E68029"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT/2,_BT+_SK+_KT), an(5)+pos(_X,_Y)+fsc(120,120)+animation(fsc(100,100))+be(10)+blur(2)+bord(2)+color1("FFFC7E")+color3("CCCCCC"), _TXT)
- for j in range(_BT+_SK+_KT,_ET,20):
- for i in range(2):
- ass_main(ASS_BUF,SubL(j+randint(-10,20),j+40+randint(-10,20)), an(5)+move(_X,_Y,_X+randint(0,150),_Y+randint(0,150))+fsc(randint(10,40),randint(10,20))+alpha1(randint(0,175))+alpha3(randint(0,175))+frz(randint(-720,720))+color1(Color[randint(0,3)])+color3(Color[randint(0,3)])+bord(1)+be(4)+alpha4(255),"{\p1}m 69 67 l 69 67 l 69 67 l 69 63 l 69 59 l 70 56 l 72 58 l 76 49 l 74 48 l 76 44 l 77 43 l 71 34 l 67 21 l 67 17 l 71 19 l 77 29 l 81 40 l 87 28 l 85 23 l 84 16 l 86 15 l 89 19 l 90 25 l 95 14 l 103 5 l 100 16 l 95 26 l 99 26 l 103 28 l 99 31 l 94 30 l 86 43 l 95 42 l 106 45 l 103 49 l 93 49 l 86 48 l 86 50 l 84 53 l 82 52 l 73 68 l 76 69 l 88 68 l 88 66 l 94 66 l 96 67 l 98 58 l 108 48 l 111 51 l 110 56 l 104 63 l 100 68 l 113 68 l 114 64 l 119 60 l 120 62 l 120 67 l 117 69 l 128 69 l 137 72 l 134 73 l 127 74 l 117 74 l 120 79 l 120 83 l 117 82 l 114 79 l 113 74 l 100 75 l 105 84 l 108 84 l 109 86 l 108 86 l 111 95 l 111 100 l 106 97 l 102 91 l 95 78 l 92 78 l 90 75 l 73 75 l 82 91 l 83 90 l 86 94 l 86 96 l 86 94 l 97 95 l 100 96 l 101 98 l 99 102 l 96 104 l 94 104 l 94 103 l 85 101 l 92 113 l 97 113 l 98 115 l 98 116 l 94 116 l 98 126 l 100 131 l 100 134 l 97 131 l 90 119 l 87 123 l 85 122 l 86 117 l 88 116 l 82 104 l 79 112 l 80 114 l 78 117 l 70 119 l 69 114 l 76 102 l 78 101 l 75 95 l 77 94 l 69 79 l 67 82 l 69 85 l 66 90 l 63 88 l 61 92 l 61 96 l 59 101 l 57 100 l 60 102 l 64 109 l 68 117 l 68 123 l 64 122 l 61 119 l 59 119 l 57 116 l 59 114 l 55 104 l 52 110 l 50 116 l 48 118 l 51 120 l 52 124 l 52 126 l 49 125 l 46 122 l 42 129 l 40 134 l 35 136 l 36 131 l 37 127 l 43 119 l 38 119 l 36 117 l 37 116 l 41 115 l 44 116 l 51 102 l 42 103 l 40 106 l 38 106 l 36 105 l 36 103 l 33 101 l 31 99 l 35 96 l 39 96 l 48 96 l 50 98 l 52 98 l 52 96 l 54 92 l 56 92 l 58 86 l 56 84 l 60 80 l 61 80 l 66 74 l 61 75 l 58 78 l 55 78 l 53 77 l 53 75 l 46 75 l 47 76 l 46 77 l 42 77 l 36 89 l 34 93 l 29 95 l 27 92 l 27 88 l 27 85 l 28 83 l 32 83 l 37 75 l 24 75 l 24 76 l 21 81 l 18 82 l 17 80 l 18 77 l 20 74 l 10 74 l 2 72 l 6 70 l 20 70 l 18 67 l 17 64 l 18 61 l 20 62 l 22 65 l 24 68 l 23 69 l 37 70 l 32 62 l 28 62 l 27 60 l 28 56 l 27 52 l 29 49 l 31 49 l 35 53 l 41 65 l 41 67 l 45 68 l 53 69 l 53 67 l 54 65 l 58 66 l 60 68 l 64 69 l 61 66 l 58 64 l 57 58 l 54 52 l 52 53 l 51 50 l 51 49 l 46 50 l 38 50 l 31 47 l 34 42 l 36 41 l 38 39 l 41 39 l 42 42 l 45 42 l 50 43 l 44 31 l 44 32 l 38 32 l 35 30 l 37 27 l 41 27 l 44 28 l 38 20 l 35 12 l 35 6 l 38 10 l 43 16 l 46 24 l 48 20 l 51 19 l 52 23 l 50 27 l 48 27 l 55 40 l 57 32 l 56 29 l 58 27 l 60 26 l 61 24 l 65 25 l 67 28 l 63 39 l 61 43 l 59 43 l 61 50 l 61 51 l 65 58 l 66 56 l 68 56 l 68 60 l 67 62 {\p0}")
- if _i == 7:
- step = int(_FD/10)
- for j in range(_BT,_BT+_SK,step):
- t = j
- t1 = t + step
- ass_main(ASS_BUF,SubL(t,t1), an(5)+pos(_X+randint(-3,3),_Y+randint(-3,3))+be(3)+bord(2)+color1("FFFC7E")+color3("E68029") ,_TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK,_ET-10), an(5)+pos(_X,_Y)+be(3)+bord(2)+color1("FFFC7E")+color3("E68029"), _TXT)
- ass_main(ASS_BUF,SubL(_ET-10,_ET), an(5)+pos(_X,_Y)+animation(fsc(130,130))+be(3)+bord(2)+color1("FFFC7E")+color3("E68029")+fad(0, 100), _TXT)
-
-
- return (ASS_BUF,None)
复制代码 |
-
1
查看全部评分
-
|