TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

 找回密码
 新人加入
楼主: Alex
打印 上一主题 下一主题

[已解决] PixTexture color! [复制链接]

Rank: 4

21#
发表于 2013-11-17 20:13:12 |只看该作者
本帖最后由 Alex 于 2013-11-17 20:16 编辑

it's ok now,

but shape position why it's different should be same text clip   -_-

8.png
  1.         th =   _TH[_i][_j]/1.4
  2.         tw =  _TW[_i][_j]/2
  3.         XP_fix = 20


  4.         text3 = "{\\an8\\pos(%d,%d)\\bord0\\p1}m %d %d l %d %d l %d %d l %d %d"%(x+XP_fix,y , tw,th, -tw, th, -tw, -th, tw, -th)
  5.         ass_main(ASS_BUF, SubL(_start,te,1) ,'',text3)
复制代码

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

22#
发表于 2013-11-19 13:15:14 |只看该作者
Alex 发表于 2013-11-17 20:13
it's ok now,

but shape position why it's different should be same text clip   -_-


Maybe you forgot to use PIX[0][0] and PIX[0][1]


p.s. I just had a four day vocation :xD

Rank: 4

23#
发表于 2013-11-19 14:45:57 |只看该作者
本帖最后由 Alex 于 2013-11-19 15:30 编辑

Hahaha... I see that, I miss you XD
Anyway.  I didn't use pixels its shape only and the position is _x & _y
if u want all files I will upload

Rank: 4

24#
发表于 2013-11-19 15:38:15 |只看该作者
本帖最后由 Alex 于 2013-11-19 17:20 编辑
  1.         th =   _TH[_i][_j]/1.4
  2.         tw =  _TW[_i][_j]/2
  3.         XP_fix = 20

  4.         ts = _start  
  5.         te = _end  
  6.         text1 = "{\\pos(%d,%d)\\bord0\\1c&H000000&\\clip(m %d %d l %d %d l %d %d l %d %d)}%s"%(x,y ,x-tw,y-th, x+tw, y-th, x+tw, y+th, x-tw, y+th, _txt)
  7.         ass_main(ASS_BUF, SubL(ts,te, 5),'', text1)
  8.         text2 = "{\\an8\\pos(%d,%d)\\bord0\\p1}m %d %d l %d %d l %d %d l %d %d"%(x+XP_fix,y , tw,th, -tw, th, -tw, -th, tw, -th)
  9.         ass_main(ASS_BUF, SubL(ts,te,1) ,'',text2)
复制代码

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

25#
发表于 2013-11-25 21:44:12 |只看该作者
Alex 发表于 2013-11-19 14:45
Hahaha... I see that, I miss you XD
Anyway.  I didn't use pixels its shape only and the position is  ...

Sorry for the late reply, busy recently.
plz, upload the files, :)
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-4-20 12:16

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH