SkinLayerStudio API (Beta)
/
API Reference
/
Bone
trs()
Download MarkdownReads this bone's translation, rotation, and scale. The numbers match the Show Transform spinners.
You get three tuples. Translation (x, y, z), rotation in degrees (x, y, z), and scale (x, y, z).
It does not change the screen. To write values, use set_trs.
Signature
bone.trs(space="world") -> (translation, rotation_deg, scale)
space is the same as world_matrix. "world" or "local".
Example
bone = api.bone("Bip001 Spine")
move, rot, scale = bone.trs()
print(move)