FbxImporter

概述

FbxImporter 是 Aspose.3D FOSS 中用于 Python 的类。继承自:Importer。

FbxImporter.supports_format 在给定的文件格式被支持导入时返回 True。

此类为 Python 程序中的 FbxImporter 对象声明了 7 个方法。可用的方法包括:__init__、import_scene、open、open_from_stream、supports_format。在安装了 Aspose.3D FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。

方法

签名描述
__init__()Calls init 在此 FbxImporter 实例上.
supports_format(file_format) → bool如果给定的文件格式受支持用于导入,则返回 True
open(filename: str, options: Optional['FbxLoadOptions']) → 'Scene'使用可选的 FbxLoadOptions 从文件加载场景,并返回一个 Scene 对象
open_from_stream(stream: io.IOBase, options: Optional['FbxLoadOptions']) → 'Scene'使用可选的 FbxLoadOptions 从二进制流加载场景,并返回一个 Scene
import_scene(scene: 'Scene', stream: io.IOBase, options: 'FbxLoadOptions')使用提供的 FbxLoadOptions 将 FBX 数据从流导入到现有的 Scene 中
supports_format(file_format: 'FileFormat') → bool在 FOSS 版中未实现 — 运行时抛出异常。 在此 FbxImporter 实例上调用 supports_format(file_format)。
import_scene(scene: 'Scene', stream, options: 'LoadOptions')在 FOSS 版中未实现 — 运行时抛出异常。 在此 FbxImporter 实例上调用 import_scene(scene, stream, options)。

另请参阅

 中文