Skip to main content

All Questions

Tagged with
0 votes
0 answers
16 views

Get Rotation of an Edit Bone

How can I get the rotation of an edit bone (or just the raw bone, but not the pose bone)? Or if it's not directly possible, what's the formula for getting the rotation of a line between two points in ...
Candle's user avatar
  • 302
1 vote
0 answers
73 views

How to programmatically find a "Y" pose such that it is the inverse of another "X" pose in relation to the T-pose?

That is, if I "Apply" the armature modifier of the "Y" pose onto the mesh then if I now link that mesh to the armature of the "X" pose the mesh should look like the ...
aldu's user avatar
  • 11
1 vote
1 answer
680 views

How to move and resize a bone in Python such that the head and the tail are at a certain global position?

I want to move and resize a bone by setting the coordinates of the head of the bone and the tail of the bone explicitly. For example, let's say that these are my coordinates of my bone head: ...
Jack Gordon's user avatar
1 vote
0 answers
148 views

How to get euler/quaternion rotation from matrix?

I have 2 bones and I want to copy the rotation of one bone to another using only rotation_quaternion or rotation_euler to assign ...
cak3_lover's user avatar
3 votes
3 answers
1k views

How to get global rotation of a bone with respect to global planes of axis via python?

I'm simply trying to find the global rotation of a bone in pose mode using python i.e. what angle a bone makes with the global axis? The closest I've come is: ...
cak3_lover's user avatar
0 votes
2 answers
2k views

Rotate bone using python

I'm struggling with a rather straight forward operation - rotating a bone. There are tons of examples but can't seem to get it working. I need to rotate the bone in edit mode (if it's mode specific ...
Thabang's user avatar
1 vote
1 answer
3k views

setting and getting bone transformations

I am having some problems with blender bones. In short this is my issue: In python I am creating some bones. I transform them in edit mode using a specific matrix. Now I need to read back the ...
user2854611's user avatar
2 votes
1 answer
702 views

Python API: Transformation from `Bone` bind pose to `PoseBone` using SQT

I am trying to understand the Blender Python API, more specifically Bone and PoseBone types and how they fit in with skeletal ...
YUNG PROGRAMMER's user avatar
1 vote
2 answers
3k views

Python: How to parent an object to a bone without transformation?

I'm trying to parent an object to a specific bone. I need to assign 100% bone weights to all vertices, to be able to read this as a skeletal mesh in Unreal Engine. I'm using this code: ...
Good Samaritan's user avatar
2 votes
1 answer
1k views

How do I set the bone length after setting a new bone matrix?

In version 2.77a; the docs show that the edit_bone.matrix is no longer read only, but a note warns "does not include bone length". Luckily, ...
majidarif's user avatar
1 vote
0 answers
731 views

Correcting bone orientation in Python

I'm working on an importer from a game format, using an existing MaxScript for reference. So far things have been working out pretty well, but I was wondering what the best way to solve this issue is:...
Frohman's user avatar
  • 11
11 votes
3 answers
16k views

Get the location in world coordinates of a bone's head and tail while in pose mode

I have a bone and I need to get the location of its head and tail. I know that I can search for the corresponding edit_bone, but this list is only filled in edit mode. Is there a way to get both ...
Miguellissimo's user avatar
2 votes
2 answers
3k views

Set a bones matrix to a custom matrix

I have a script in which I compute a custom matrix for each bone of a skeleton. I know I have switch to edit mode but then I read that the property edit_bone.matrix ...
WorldSEnder's user avatar
  • 1,626
5 votes
2 answers
3k views

How can a bone's tail be changed by a script?

I want to calculate a rotation matrix from two vectors, in order to check the steps are correct I have setup 3 armatures. A reference bone (arm_org), One that is directly rotated by applying a ...
stacker's user avatar
  • 38.7k