Overview
Scene is a enum in Aspose.3d for Python.
Inherits from: SceneObject.
Scene.open(file_or_stream, options) loads a 3D file into the scene using the provided format-specific load options.
Values
| Value | Description |
|---|
VERSION | Represents the library version string, currently “24.12.0” |
Properties
| Name | Type | Access | Description |
|---|
root_node | `` | Read | ` returns the root node of the scene hierarchy, enabling traversal of child nodes and entities |
sub_scenes | List['Scene'] | Read | Contains a list of child Scene objects embedded in this scene |
library | List[CustomObject] | Read | Holds custom objects associated with the scene |
asset_info | AssetInfo | Read | Stores metadata describing assets used in the scene |
animation_clips | List['AnimationClip'] | Read | Lists all AnimationClip objects defined in the scene |
current_animation_clip | Optional['AnimationClip'] | Read | References the AnimationClip currently active, if any |
poses | List | Read | Is a collection of stored pose configurations for the scene |
Methods
| Signature | Description |
|---|
__init__(entity: Optional[Entity], parent_scene, name: Optional[str]) | |
clear() | Removes all nodes, meshes, and animations from the scene |
create_animation_clip(name: str) → 'AnimationClip' | Creates a new AnimationClip with the given name |
get_animation_clip(name: str) → Optional['AnimationClip'] | Returns the AnimationClip matching the name or None |
open(file_or_stream, options) | Loads a 3D file into the scene using the provided format-specific load options |
save(file_or_stream, format_or_options) | Writes the current scene to a file or stream, supporting both format identifiers and format-specific save options |
render(camera, file_name_or_bitmap, size, format, options) | Generates an image of the scene from a camera into a file or bitmap |
from_file(file_name: str) | Constructs a Scene by loading data from the specified file |