from_file method
from_file(, file_name)
Opens the scene from given path
@staticmethod
def from_file(file_name):
...
| Parameter | Type | Description |
|---|---|---|
| file_name | str | File name. |
Exceptions
| Exception | Description |
|---|---|
| IOException | Thrown when failed at reading input |
ImportException | Thrown 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
- module
aspose.threed - class
ImportException - class
Scene