导入.nif文件时会出现错误

2024-10-02 04:31:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用这个插件(https://github.com/niftools/blender_niftools_addon/releases)将.nif文件从Skyrim SE mods导入blender,一些.nif文件导入时没有任何问题,但许多文件存在以下错误

Python: Traceback (most recent call last):
  File "C:\Users\Epic rex\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_niftools\dependencies\pyffi\formats\nif\__init__.py", line 1375, in read
    block = getattr(NifFormat, block_type)()
AttributeError: type object 'NifFormat' has no attribute 'BSTriShape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Epic rex\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_niftools\operators\nif_import_op.py", line 122, in execute
    return NifImport(self, context).execute()
  File "C:\Users\Epic rex\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_niftools\nif_import.py", line 74, in execute
    self.load_files()  # needs to be first to provide version info.
  File "C:\Users\Epic rex\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_niftools\nif_import.py", line 141, in load_files
    NifData.init(NifFile.load_nif(NifOp.props.filepath))
  File "C:\Users\Epic rex\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_niftools\file_io\nif.py", line 64, in load_nif
    data.read(nif_stream)
  File "C:\Users\Epic rex\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_niftools\dependencies\pyffi\formats\nif\__init__.py", line 1378, in read
    "Unknown block type '%s'." % block_type)
ValueError: Unknown block type 'BSTriShape'.

location: <unknown location>:-1

有人能帮忙吗,先谢谢你


Tags: pyioscriptssceneroamingusersappdatafile

热门问题