Node
Overview
Node is a class in Aspose.3d for Python.
Inherits from: SceneObject.
Node.add_entity adds the given Entity to this node’s entity collection.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
parent_node | Optional['Node'] | Read | Holds a reference to this node’s parent, or None if root |
child_nodes | List['Node'] | Read | Is a list of this node’s direct child Node objects |
entities | List['Entity'] | Read | Contains all Entity objects attached to this node |
entity | Optional['Entity'] | Read | Is the primary Entity associated with this node, or None |
materials | List['Material'] | Read | Is a list of Material objects applied to this node |
material | Optional['Material'] | Read | Is the primary Material of this node, or None |
transform | Transform | Read | provides the local Transform object, while Node.global_transform() returns the accumulated world‑space GlobalTransform` |
global_transform | GlobalTransform | Read | Provides the computed GlobalTransform of this node |
visible | bool | Read | ` gets or sets a Boolean flag that determines whether the node is rendered |
excluded | bool | Read | Flags the node to be omitted from export or processing |
asset_info | `` | Read | Stores metadata about the asset represented by this node |
meta_datas | List | Read | Is a list of custom metadata entries attached to the node |
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 a 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 Matrix4, optionally including geometric transform |
get_bounding_box() → BoundingBox | Returns the BoundingBox that encloses this node’s geometry |
select_single_object(path: str) | Selects a single object in the node hierarchy using the given path |
select_objects(path: str) | Selects multiple objects matching the path expression |