Align a bone to a custom transform orientation and recalculate roll so that the bone Z axis points along the custom orientation X axis.
Select object face.
Create custom transform orientation (“Face” in this case) and keep it selected.
Snap (Shift-S) → Cursor to Selected
Enter armature Edit Mode.
Either add a new bone or select an existing bone.
Right click bone in edit mode and select “Align Bone to Transform Orientation”.
Or: F3 → “Align Bone to Transform Orientation”
Now the bone sits orthogonal on the selected face and is rolled in a way that its Z axis points along the X axis of the custom transform orientation.
9 Likes
Roamcell
(Roamcell)
March 21, 2024, 8:21pm
2
Hello, thank you for this, but it’s no longer working with Blender 4.02.
Registration works correctly, but there’s incompatible differences with the current bpy.ops.transform.translate, so the actual command fails.
Is there any chance that you could look into the issue? It’s surreal that this function doesn’t exist in blender right now!
Roamcell
(Roamcell)
March 30, 2024, 6:06am
4
Hello, any news on this? Otherwise if you can give pointers for the posible solution, maybe I could give it a try myself?
Sorry for the delay but I fixed it and made sure that the script runs from Blender 3.3 up to 4.2.
Roamcell
(Roamcell)
April 14, 2024, 7:37am
6
Fantastic! Thanks for the awesome work on this.
1 Like