SkinLayerStudio API (Beta) / API Reference / Bone

trs()

下载 Markdown

读取这根骨骼的移动、旋转和缩放。数字和 Show Transform 旋钮上的一样。

返回三个元组。移动 (x, y, z),旋转是角度 (x, y, z),缩放 (x, y, z)。

不会改画面。要写入数值用 set_trs。

签名

bone.trs(space="world") -> (translation, rotation_deg, scale)

space 和 world_matrix 一样。"world" 或 "local"。

示例

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.

联系支持