AssetInfo class
AssetInfo class
Information of asset.
Asset information can be attached to a Scene
.
Child Scene
can have its own AssetInfo
to override parent’s definition.
Inheritance: AssetInfo
→
A3DObject
The AssetInfo type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes a new instance of the AssetInfo class. |
init | Initializes a new instance of the AssetInfo class. |
Properties
Property | Description |
---|---|
name | Gets or sets the name. |
properties | Gets the collection of all properties. |
creation_time | Gets or Sets the creation time of this asset |
modification_time | Gets or Sets the modification time of this asset |
ambient | Gets or Sets the default ambient color of this asset |
url | Gets or Sets the URL of this asset. |
application_vendor | Gets or sets the application vendor’s name |
copyright | Gets or sets the document’s copyright |
application_name | Gets or sets the application that created this asset |
application_version | Gets or sets the version of the application that created this asset. |
title | Gets or sets the title of this asset |
subject | Gets or sets the subject of this asset |
author | Gets or sets the author of this asset |
keywords | Gets or sets the keywords of this asset |
revision | Gets or sets the revision number of this asset, usually used in version control system. |
comment | Gets or sets the comment of this asset. |
unit_name | Gets or sets the unit of length used in this asset. e.g. cm/m/km/inch/feet |
unit_scale_factor | Gets or sets the scale factor to real-world meter. |
coordinate_system | Gets or sets the coordinate system used in this asset. |
up_vector | Gets or sets the up-vector used in this asset. |
front_vector | Gets or sets the front-vector used in this asset. |
axis_system | Gets or sets the coordinate system/up vector/front vector of the asset info. |
Methods
Method | Description |
---|---|
remove_property | Removes a dynamic property. |
remove_property | Remove the specified property identified by name |
get_property | Get the value of specified property |
set_property | Sets the value of specified property |
find_property | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Example
The following code shows how to read asset info from a fbx file:
from aspose.threed import Scene
scene = Scene.from_file("test.fbx")
print(f"The file is created at {scene.asset_info.creation_time} by {scene.asset_info.application_name} {scene.asset_info.application_version} ")
See Also
- module
aspose.threed
- class
A3DObject
- class
AssetInfo
- class
Scene