SkinLayerStudio API (Beta) / API Reference / Bone

trs()

마크다운 다운로드

이 본의 이동, 회전, 크기를 읽습니다. 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.

문의하기