SkinLayerStudio API (Beta) / API Reference / Bone

trs()

Download Markdown

Reads 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)
💬

Need help with the API?

Open a support ticket or join the community discussion.

Contact Support