Scene

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

ValueDescription
VERSIONRepresents the library version string, currently “24.12.0”

Properties

NameTypeAccessDescription
root_node``Read` returns the root node of the scene hierarchy, enabling traversal of child nodes and entities
sub_scenesList['Scene']ReadContains a list of child Scene objects embedded in this scene
libraryList[CustomObject]ReadHolds custom objects associated with the scene
asset_infoAssetInfoReadStores metadata describing assets used in the scene
animation_clipsList['AnimationClip']ReadLists all AnimationClip objects defined in the scene
current_animation_clipOptional['AnimationClip']ReadReferences the AnimationClip currently active, if any
posesListReadIs a collection of stored pose configurations for the scene

Methods

SignatureDescription
__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