AssetInfo — Aspose.3D FOSS for Python API Reference

Overview

AssetInfo is a metadata container attached to a Scene via Scene.asset_info (or to a Node via Node.asset_info). It stores information about the file’s origin: the tool that created it, measurement units, creation/modification timestamps, and optional axis-system settings.

AssetInfo inherits from A3DObject.

Package: aspose.threed

from aspose.threed import AssetInfo

Constructor

SignatureDescription
AssetInfo()Constructs with all fields empty/default
AssetInfo(name)Constructs with an optional object name

Properties

All fields are readable and writable properties.

Authoring and Identification

NameTypeDescription
titlestrHuman-readable title of the asset
subjectstrSubject or topic of the asset
authorstrName of the file’s author
keywordsstrKeywords associated with the asset
revisionstrVersion or revision string
commentstrFreeform comment or description
copyrightstrCopyright notice
urlstrSource URL or reference URI

Application Information

NameTypeDescription
application_namestrName of the authoring application (e.g., "Blender")
application_vendorstrVendor of the authoring application
application_versionstrVersion string of the authoring application

Timestamps

NameTypeDescription
creation_timedatetime | NoneCreation date/time of the asset
modification_timedatetime | NoneLast modification date/time

Units

NameTypeDescription
unit_namestrName of the measurement unit (e.g., "centimeter", "meter")
unit_scale_factorfloatScale factor to convert from the file’s units to meters; defaults to 1.0

Coordinate System (stub properties)

The following properties are present but return None in the current FOSS release. They are reserved for future axis-remapping support.

NameDescription
coordinate_systemHandedness convention (right-hand or left-hand)
up_vectorWhich axis points up
front_vectorWhich axis points forward
axis_systemCombined axis-system descriptor
ambientScene ambient colour

Example

from aspose.threed import Scene, AssetInfo
from datetime import datetime

# Load a scene and inspect its metadata
scene = Scene.from_file("model.fbx")
info = scene.asset_info

if info is not None:
    print(info.application_name)    # e.g. "Blender"
    print(info.unit_name)           # e.g. "centimeter"
    print(info.unit_scale_factor)   # e.g. 0.01

# Create metadata for an exported scene
out_scene = Scene()
out_info = AssetInfo()
out_info.title = "My Model"
out_info.author = "Alice"
out_info.application_name = "MyPipeline"
out_info.unit_name = "meter"
out_info.unit_scale_factor = 1.0
out_info.creation_time = datetime.now()
out_scene.asset_info = out_info

out_scene.save("output.glb")

See Also