Bone class
Bone class
A bone defines the subset of the geometry’s control point, and defined blend weight for each control point.
The Bone object cannot be used directly, a SkinDeformer instance is used to deform the geometry, and SkinDeformer comes with a set of bones, each bone linked to a node.
NOTE: A control point of a geometry can be bounded to more than one Bones.
The Bone type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
__init__(self, name) | Initializes a new instance of the Bone class. |
__init__(self) | Initializes a new instance of the Bone class. |
Properties
| Property | Description |
|---|---|
| name | Gets or sets the name. |
| properties | Gets the collection of all properties. |
| link_mode | A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure. |
| weight_count | Gets the count of weight, this is automatically extended by Bone.set_weight |
| transform | Gets or sets the transform matrix of the node containing the bone. |
| bone_transform | Gets or sets the transform matrix of the bone. |
| node | Gets or sets the node. The bone node is the bone which skin attached to, the SkinDeformer will use bone node to influence the displacement of the control points. |
Bone node usually has a Skeleton attached, but it’s not required. | |
Attached Skeleton is usually used by DCC software to show skeleton to user. |
Indexer
| Name | Description |
|---|---|
| [index] |
Methods
| Method | Description |
|---|---|
remove_property(self, property) | Removes a dynamic property. |
remove_property(self, property) | Remove the specified property identified by name |
get_property(self, property) | Get the value of specified property |
set_property(self, property, value) | Sets the value of specified property |
find_property(self, property_name) | Finds the property. |
It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) | |
or native property(Identified by its name) | |
get_weight(self, index) | Gets the weight for control point specified by index |
set_weight(self, index, weight) | Sets the weight for control point specified by index |
See Also
- module
aspose.threed.deformers - class
A3DObject - class
Bone - class
Skeleton - class
SkinDeformer