我可以从搅拌机的控制台导出模型吗?

Yar*_*hyn 4 model command-line-interface blender fbx

我可以使用 Blender 通过控制台将模型导出为 .fbx 格式吗?

类似于: Blender.exe myModel.blend --output model.fbx

Out*_*und 6

对于 Blender 2.90 及更高版本,此脚本将为您将场景导出为 FBX 文件。

导出_fbx.py:

import bpy
import sys

print("Blender export scene in FBX Format in file "+sys.argv[-1])

# Doc can be found here: https://docs.blender.org/api/current/bpy.ops.export_scene.html
bpy.ops.export_scene.fbx(filepath=sys.argv[-1])
Run Code Online (Sandbox Code Playgroud)

要使用搅拌机调用它,您可以使用以下命令:

blender <your_scene>.blend --background --python export_fbx.py -- <your_scene>.fbx
Run Code Online (Sandbox Code Playgroud)

Python 脚本是导出场景时可以使用的最少脚本。您可以向该函数传递很多参数export_scene.fbx(),并且它不处理多个输入和输出文件。