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

NameTypeAccessDescription
parent_nodeOptional['Node']ReadHolds a reference to this node’s parent, or None if root
child_nodesList['Node']ReadIs a list of this node’s direct child Node objects
entitiesList['Entity']ReadContains all Entity objects attached to this node
entityOptional['Entity']ReadIs the primary Entity associated with this node, or None
materialsList['Material']ReadIs a list of Material objects applied to this node
materialOptional['Material']ReadIs the primary Material of this node, or None
transformTransformReadprovides the local Transform object, while Node.global_transform() returns the accumulated world‑space GlobalTransform`
global_transformGlobalTransformReadProvides the computed GlobalTransform of this node
visibleboolRead` gets or sets a Boolean flag that determines whether the node is rendered
excludedboolReadFlags the node to be omitted from export or processing
asset_info``ReadStores metadata about the asset represented by this node
meta_datasListReadIs a list of custom metadata entries attached to the node

Methods

SignatureDescription
__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)Matrix4Computes the node’s global Matrix4, optionally including geometric transform
get_bounding_box()BoundingBoxReturns 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