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

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)
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)Matrix4Computes the node’s global Transform matrix, 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
find_property(property_name: str)
get_property(property: str)
set_property(property: str, value)Sets the property value.
remove_property(property)

See Also

 English