Node
Overview
Node is a class in Aspose.3D FOSS for Python.
Inherits from: SceneObject.
Node.add_entity adds the given Entity to this node’s entity collection.
This class provides 14 methods for working with Node objects in Python programs.
Available methods include: __init__, add_child_node, add_entity, create_child_node, evaluate_global_transform, find_property, get_bounding_box, get_child, get_property, merge, remove_property, select_objects, and 2 additional methods.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: asset_info, child_nodes, entities, entity, excluded, global_transform, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
parent_node | Optional['Node'] | Read/Write | Gets or sets the parent node. |
child_nodes | List['Node'] | Read | Gets the child nodes. |
entities | List['Entity'] | Read | Gets the entities. |
entity | Optional['Entity'] | Read/Write | Gets or sets the entity. |
materials | List['Material'] | Read | Gets the materials. |
material | Optional['Material'] | Read/Write | Gets or sets the material. |
transform | Transform | Read | Gets the transform. |
global_transform | GlobalTransform | Read | Gets the global transform. |
visible | bool | Read/Write | Gets or sets the visible. |
excluded | bool | Read/Write | Gets or sets the excluded. |
asset_info | `` | Read/Write | Gets or sets the asset info. |
meta_datas | List | Read | Gets the meta datas. |
scene | `` | Read/Write | Gets or sets the scene. |
name | str | Read/Write | Gets or sets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
__init__(name: Optional[str], entity) | |
add_entity(entity: 'Entity') | Adds the given Entity to this node’s entity collection |
add_child_node(node: 'Node') | Attaches the specified Node as a child of this node |
create_child_node(node_name: Optional[str], entity, material) → 'Node' | Creates a new child Node with optional name, entity, and material |
get_child(index_or_name) | Returns the child Node identified by index or name |
merge(node: 'Node') | Combines the contents of another Node into this node |
evaluate_global_transform(with_geometric_transform: bool) → Matrix4 | Computes the node’s global Transform matrix, optionally including geometric transform |
get_bounding_box() → BoundingBox | Returns the bounding box. |
select_single_object(path: str) | Not implemented in the FOSS edition — throws at runtime. Selects a single object in the node hierarchy using the given path |
select_objects(path: str) | Not implemented in the FOSS edition — throws at runtime. Selects multiple objects matching the path expression |
find_property(property_name: str) | |
get_property(property: str) | |
set_property(property: str, value) | Sets the property value. |
remove_property(property) |