Material
Overview
Material is a class in Aspose.3D FOSS for Python.
Inherits from: A3DObject.
Material provides enum values MAP_SPECULAR, MAP_DIFFUSE, MAP_EMISSIVE, MAP_AMBIENT, MAP_NORMAL to identify standard texture slots.
This class declares 8 methods for Material objects in Python programs.
Available methods include: __init__, __repr__, find_property, get_property, get_texture, remove_property, set_property, set_texture.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: name, properties.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read/Write | Gets or sets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
__init__(name: str) | Calls init(name) on this Material instance. |
get_texture(slot_name: str) | Not implemented in the FOSS edition — throws at runtime. Retrieves the texture assigned to the specified slot name |
set_texture(slot_name: str, texture) | Not implemented in the FOSS edition — throws at runtime. Sets the texture value. |
find_property(property_name: str) | Calls find_property(property_name) on this Material instance. |
get_property(property: str) | Calls get_property(property) on this Material instance. |
set_property(property: str, value) | Sets the property value. |
remove_property(property) | Calls remove_property(property) on this Material instance. |
__repr__() → str | Calls repr on this Material instance. |