安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
>>> bpy.ops.import_scene.smd(filepath='I:\\Libraries\\Documents\\Exported\\Hero\\Pharah\\Skin\\STANDARD_COMMON\\Classic\\anim_mess\\000000000037.smd')
Error: Traceback (most recent call last):
File "C:\Users\me\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\io_scene_valvesource\import_smd.py", line 73, in execute
self.num_files_imported = self.readSMD(filepath, self.properties.upAxis, self.properties.rotMode)
File "C:\Users\me\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\io_scene_valvesource\import_smd.py", line 1267, in readSMD
print("\nSMD IMPORTER: now working on",smd.jobName)
File "C:\Users\me\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\io_scene_valvesource\utils.py", line 90, in print
builtins.print(" ".join([str(a) for a in args]).encode(sys.getdefaultencoding()).decode(sys.stdout.encoding), end= "\n" if newline else "", flush=True)
TypeError: decode() argument 1 must be str, not None
location: C:\Program Files\Blender Foundation\Blender\2.77\scripts\modules\bpy\ops.py:189
From what I can tell, the filename isn't being set when I call it directly from the API. They must have some different input method in import_scene.
You can find the keywords and their values in the source code.[github.com]
The proper command format (with valid args) is:
>> bpy.ops.import_scene.smd(filepath="I:\\foo.smd", append="NEW_ARMATURE")
It isn't saying I have unrecognized parameters anymore, so that's nice.
But when I am calling this method, I get the same exception shown above. From what I could tell, the filepath isn't being passed into import_smd.py. Any idea why that could be the case?
This is how I run the importer in unit tests.[github.com]
Try attaching to Blender with Visual Studio and PTVS[github.com]. Then you'll be able to debug any Python running within the process.
I can see if I am able to debug this in visual studio, but I don't know if I have the time.
I just don't know if it is an actual bug, or if it is just my setup. Can anyone else get this command to run in a script on their end?