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.

お問い合わせ