Bone

Overview

Bone is a class in Aspose.3D FOSS for Python. Inherits from: A3DObject.

Bone objects expose weight management via get_weight and set_weight methods, enabling skinning calculations.

This class declares 7 methods for Bone objects in Python programs. Available methods include: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: bone_transform, link_mode, name, node, properties, transform, and 1 more.

Properties

NameTypeAccessDescription
link_mode'BoneLinkMode'Read/WriteGets or sets the link mode.
weight_countintReadGets the weight count.
transform'Matrix4'Read/WriteGets or sets the transform.
bone_transform'Matrix4'Read/WriteGets or sets the bone transform.
node'Node'Read/WriteGets or sets the node.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
__init__(name: str)Calls init(name) on this Bone instance.
get_weight(index: int)floatCalls get_weight(index) on this Bone instance.
set_weight(index: int, weight: float)Sets the weight value.
find_property(property_name: str)Calls find_property(property_name) on this Bone instance.
get_property(property: str)Calls get_property(property) on this Bone instance.
set_property(property: str, value)Sets the property value.
remove_property(property)Calls remove_property(property) on this Bone instance.

See Also