为pyassimp的导出函数引用docstring:>>> help(pyassimp.export)
Help on function export in module pyassimp.core:
export(scene, filename, file_type=None, processing=8)
Export a scene. On failure throws AssimpError.
Arguments
-
scene: scene to export.
filename: Filename that the scene should be exported to.
file_type: string of file exporter to use. For example "collada".
processing: assimp postprocessing parameters. Verbose keywords are imported
from postprocessing, and the parameters can be combined bitwise to
generate the final processing value. Note that the default value will
triangulate quad faces. Example of generating other possible values:
processing = (pyassimp.postprocess.aiProcess_Triangulate |
pyassimp.postprocess.aiProcess_OptimizeMeshes)
在您的例子中,这意味着您应该使用file_typegltf调用函数,如下所示:
^{pr2}$