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

标题: tcaxpy init与fin均为ture下的global name '_FD' is not defined [打印本页]

作者: TPMoonChefRyan    时间: 2017-6-25 15:22:04     标题: tcaxpy init与fin均为ture下的global name '_FD' is not defined

问题.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 >


求大佬指点

图片附件: 问题.PNG (2017-6-25 15:21:06, 55.91 KB) / 下载次数 4
http://tcax.org/forum.php?mod=attachment&aid=MjA3OHxjZTExYjEwNXwxNzMyMjA1NTE3fDB8MA%3D%3D


作者: TPMoonChefRyan    时间: 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 发帖以获取帮助.

请按任意键继续. . .
作者: youkaze    时间: 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特效试试吧
作者: TPMoonChefRyan    时间: 2018-2-15 10:35:09

youkaze 发表于 2017-7-31 23:32
你的tcc文件设置好像没问题
看了下是init函数下设置的_FD软件识别不出来 tcc设置使用了init 好奇怪
LZ换 ...

嗯嗯我试试看,谢谢




欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/) Powered by Discuz! X2