FileNotFoundError with blend2bam



所以我试着按照Panda3D官方页面的建议,用blend2bam将.flend文件转换为.bam,但我得到了一个FileNotFoundError。我使用的是带有Python3.7的Windows(来自Panda3D安装(。我尝试了很多解决src和dst的方法,但仍然没有成功。

C:Panda3D-1.10.6-x64mystuffpandatest>blend2bam C:Panda3D-1.10.6-x64mystuffpandatestcar_model.blend C:Panda3D-1.10.6-x64mystuffpandatest
Traceback (most recent call last):
File "c:panda3d-1.10.6-x64pythonlibrunpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:panda3d-1.10.6-x64pythonlibrunpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:Panda3D-1.10.6-x64pythonScriptsblend2bam.exe__main__.py", line 9, in <module>
File "c:panda3d-1.10.6-x64pythonlibsite-packagesblend2bamcli.py", line 195, in main
use_gltf28 = blenderutils.is_blender_28(args.blender_dir)
File "c:panda3d-1.10.6-x64pythonlibsite-packagesblend2bamblenderutils.py", line 22, in is_blender_28
output = subprocess.check_output([binpath, '--version'])
File "c:panda3d-1.10.6-x64pythonlibsubprocess.py", line 411, in check_output
**kwargs).stdout
File "c:panda3d-1.10.6-x64pythonlibsubprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "c:panda3d-1.10.6-x64pythonlibsubprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "c:panda3d-1.10.6-x64pythonlibsubprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

遇到同样的错误。它叫blender,所以需要知道在哪里可以找到它:blend2bam--blender-dir"C:\Program Files\blender Foundation\blender 2.82"test.blend test_bam_dir

我的解决方法是使用Blender2.7和Yabee。

我今天遇到了同样的问题,我想我最终已经解决了。您需要使用blender安装目录作为参数。这是我的:

文件名:

(source) >> cube.blend 
(dest)>>    cube.bam

示例:

blend2bam cube.blend cube.bam --blender-dir D:ProgramsBlender

诀窍是路径必须简单。无空格等

我希望它能帮助

Niyazi

相关内容

  • 没有找到相关文章

最新更新