from_file method

from_file(, file_name)

Opens the scene from given path


@staticmethod
def from_file(file_name):
    ...
ParameterTypeDescription
file_namestrFile name.

Exceptions

ExceptionDescription
IOExceptionThrown when failed at reading input
ImportExceptionThrown when input is not a valid 3D format

Example

The following code shows how to create a scene from a file

from aspose.threed import Scene

scene = Scene.from_file("input.fbx")

See Also