natiny.mesh.get_bone_name
natiny.mesh.get_bone_name(mesh, index) -> name
Returns the name of one joint, which is the name
natiny.model.get_bone and
natiny.animator.set_mask look up.
Parameters
| Name | Type | Description |
|---|---|---|
mesh |
number |
Mesh handle |
index |
integer |
Zero-based joint index, below get_bone_count |
Returns
| Type | Description |
|---|---|
string |
The joint's name; nil for an index past the end |
Example
print(natiny.mesh.get_bone_name(hero_mesh, 0))