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

 找回密码
 新人加入
查看: 2748|回复: 3

[未解决] tcaxpy init与fin均为ture下的global name '_FD' is not defined [复制链接]

Rank: 4

发表于 2017-6-25 15:22:04 |显示全部楼层
问题.PNG


tcc文件如下:
# tcc file version

< tcc file version = 1.000 >


# mode configuration

< inherit ass header = false >
< k mode = syllable >
< text layout = horizontal >
< tcaxpy init = ture >
< tcaxpy user = false >
< tcaxpy fin = ture >


# py settings

< py file = !in_001.py >    < beg line = 1 >    < end line = 0 >
< py file = !main_001.py >    < beg line = 1 >    < end line = 0 >
< py file = !out_001.py >    < beg line = 1 >    < end line = 0 >
< py file = !ext_light.py >    < beg line = 1 >    < end line = 0 >

# main settings

< k-timed ass file = Starry Wish MV_K.ass >
< font file = STZHONGS.TTF >    < font face id = 1 >    < font size = 39 >
< fx width = 1920 >    < fx height = 1080 >    < fx fps = 23 >
< alignment = 2 >
< x offset = 30 >    < y offset = 120 >
< spacing = 0 >    < space scale = 1.000 >


# style settings

< font face name = "华文中宋" >
< bord = 1 >    < shad = 0 >
< primary color = 7DB8C5 >    < secondary color = 000000 >    < outline color = 000000 >    < back color = 000000 >
< primary alpha = 0 >    < secondary alpha = 255 >    < outline alpha = 0 >    < back alpha = 255 >


# additional settings

< blur = 0.000 >


求大佬指点

Rank: 4

发表于 2017-6-25 15:26:27 |显示全部楼层
本帖最后由 TPMoonChefRyan 于 2018-2-15 10:34 编辑

貌似图挂了,贴一下报错窗口

TCAX version 1.2.0 [2012-08-03] [Anniversary]
(C) Copyright 2009-2012 milkyjing

Traceback (most recent call last):
  File "C:\Users\***\Documents\tcax_1.2.0\scripts\IN\in_001.py", line 27, in tcaxPy_Main
    duration = 10 * _FD                                                               # effect duration, in millisecond
NameError: global name '_FD' is not defined
Fatal Error: failed to execute the tcaxPy_Main() function in the 1(th) user tcax py script.
INFO: Task failed!


温馨提醒: 如果不清楚造成本错误的原因, 请保留本窗口截图以及当前特效工程,
访问 http://tcax.rhacg.com/forum.php?mod=forumdisplay&fid=38 发帖以获取帮助.

请按任意键继续. . .

Rank: 4

发表于 2017-7-31 23:32:22 |显示全部楼层
TPMoonChefRyan 发表于 2017-6-25 15:26
貌似图挂了,贴一下报错窗口

TCAX version 1.2.0 [2012-08-03] [Anniversary]

你的tcc文件设置好像没问题
看了下是init函数下设置的_FD软件识别不出来 tcc设置使用了init 好奇怪
LZ换一个in特效试试吧

Rank: 4

发表于 2018-2-15 10:35:09 |显示全部楼层
youkaze 发表于 2017-7-31 23:32
你的tcc文件设置好像没问题
看了下是init函数下设置的_FD软件识别不出来 tcc设置使用了init 好奇怪
LZ换 ...

嗯嗯我试试看,谢谢
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-3-29 17:13

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH