Node

Overview

Node is a class in Aspose.3D FOSS for Python. Inherits from: SceneObject.

Node.create_child_node(name, entity, material) creates a new child Node and optionally attaches an entity and a material in one call.

This class declares 17 methods for Node objects in Python programs. Available methods include: __init__, __repr__, add_child_node, add_entity, create_child_node, evaluate_global_transform, find_property, get_bounding_box, get_child, get_entity, get_property, merge, and 4 additional methods. 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

NameTypeAccessDescription
parent_nodeOptional['Node']Read/WriteGets or sets the parent node.
child_nodesList['Node']ReadGets the child nodes.
entitiesList['Entity']ReadGets the entities.
entityOptional['Entity']Read/WriteGets or sets the entity.
materialsList['Material']ReadGets the materials.
materialOptional['Material']Read/WriteGets or sets the material.
transformTransformReadGets the transform.
global_transformGlobalTransformReadGets the global transform.
visibleboolRead/WriteGets or sets the visible.
excludedboolRead/WriteGets or sets the excluded.
asset_info``Read/WriteGets or sets the asset info.
meta_datasListReadGets the meta datas.
scene``Read/WriteGets or sets the scene.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
__init__(name: Optional[str], entity)Calls init(name, entity) on this Node instance.
add_entity(entity: 'Entity')` attaches an entity such as a Mesh to the current node after it has been created
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, attaches an entity (e.g., a Mesh) and an optional material in a single call
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` returns the absolute transformation matrix of the node, optionally including geometric transform
get_bounding_box() → BoundingBoxReturns 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
__repr__() → strCalls repr on this Node instance.
get_entity(entity_type: type)Calls get_entity(entity_type) on this Node instance.
__init__(name: str)Calls init(name) on this Node instance.
find_property(property_name: str)Calls find_property(property_name) on this Node instance.
get_property(property: str)Calls get_property(property) on this Node instance.
set_property(property: str, value)Sets the property value.
remove_property(property)Calls remove_property(property) on this Node instance.

See Also

 English