FileFormat

Overview

FileFormat is a class in Aspose.3D FOSS for Python.

FileFormat can detect a file’s format from a stream and file name, and can create matching load and save option objects.

This class declares 9 methods for FileFormat objects in Python programs. Available methods include: FBX7400ASCII, GLTF2, MICROSOFT_3MF_FORMAT, WAVEFRONT_OBJ, __init__, create_load_options, create_save_options, detect, get_format_by_extension. All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: can_export, can_import, content_type, extension, extensions, file_format_type, and 2 more.

Properties

NameTypeAccessDescription
extensionstrReadGets the extension.
extensionsList[str]ReadGets the extensions.
content_typestrReadGets the content type.
file_format_type``ReadGets the file format type.
versionstrReadGets the version.
can_exportboolReadGets the can export.
can_importboolReadGets the can import.
formatsList['FileFormat']ReadGets the formats.

Methods

SignatureDescription
WAVEFRONT_OBJ()Calls WAVEFRONT_OBJ on this FileFormat instance.
GLTF2()Calls GLTF2 on this FileFormat instance.
MICROSOFT_3MF_FORMAT()Calls MICROSOFT_3MF_FORMAT on this FileFormat instance.
FBX7400ASCII()Calls FBX7400ASCII on this FileFormat instance.
__init__()Calls init on this FileFormat instance.
detect(stream: 'io._IOBase', file_name: Optional[str])Optional['FileFormat']Calls detect(stream, file_name) on this FileFormat instance.
get_format_by_extension(extension_name: str)Optional['FileFormat']Calls get_format_by_extension(extension_name) on this FileFormat instance.
create_load_options()'LoadOptions'Calls create_load_options on this FileFormat instance.
create_save_options()'SaveOptions'Calls create_save_options on this FileFormat instance.

See Also

 English