Detect format of 3D file

Detect Format Programming Sample

The following sample code illustrates how to detect a file format (using the file path or stream) and check its extension.

import aspose.threed as a3d
# For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET
# Detect the format of a 3D file
inputFormat = a3d.FileFormat.detect("document.fbx");
# Display the file format
print("File Format: " + str(inputFormat))