All Questions
100
questions
0
votes
2
answers
164
views
How do I search for a bone's name, then rename it with a script?
What I need to do is search for a bone then rename that bone, for example I want to find the left hand. I search for that bone with the letters "hand", "ik", and "L" in ...
0
votes
1
answer
102
views
How to change the scale of each bone?
I would like to change the bone scale for a material. I want to change the specified bone to scale -1 for XYZ as shown in the video below.
I have drawn a script to try it out as shown below, but I can'...
1
vote
1
answer
205
views
Rotation of an object around its local axis
I've been trying for a while now to rotate a rig around its local axis.
Given 3 angles I would like to rotate the bone around its axis.
I saw that in the UI method that is used ...
1
vote
0
answers
147
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 ...
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:
...
1
vote
0
answers
38
views
Pointing bone at the middle of 2 points using plane
I am trying to create a bone that rotates in the way a wrist would rotate when the hand is moved. I have locations of specific points on the hand, the wirst, the start of the pinky finger and the ...
0
votes
1
answer
122
views
How to apply one pose after another via scripting?
I have 3 poses: Default , Location , Rotate & I need to execute them in that order, like ...
1
vote
1
answer
304
views
Draw window and swap doesn' work
I'am writing python script that uses data from IMU sensor and changes armature structure position.
To visualise movement I use
...
3
votes
2
answers
711
views
How to properly execute Poselib operators? (Pose Library)
I'm trying to change poses on my armature with Python and Pose Library, but I'm getting incorrect context errors and to be frank I don't even know what exactly am I ...
0
votes
1
answer
226
views
How do I get the euler rotation of a bone in pose mode?
I'm coding a live feed of the bones rotation from a IK armature, but it keeps priting 0 for all values.
This is the code:
...
2
votes
1
answer
3k
views
Blender Python API: How to add an armature and give it a name as well
In blender, I wanted to add multiple armature bones to a set of empties in my scene. In order to do this, I found this script:
...
0
votes
1
answer
236
views
Why does view_layer.update seemingly fail for my armature?
I'm writing an export script for an armature (using Blender 3.0.0). In this script, I'm attempting to clear bone roll, then force local bone matrices (...
0
votes
1
answer
649
views
Get local child bone rotation using Python
I'm looking to get the local rotations of bones using Python, in other words given a parent and a child bone, the child bone's rotation off of the parent bone.
I saw this post:Get bone rotation in ...
2
votes
1
answer
472
views
coding automatic weights in Scripting
How Can I make "with automatic weights" by Scripting?
Like the Image But by Python
1
vote
0
answers
23
views
How to write a script that selects bone constraints and fill in the blanks [duplicate]
I am using Blender2.78 and have zero coding knowledge. I'd like to run a script that adds bone constraints 'Copy Location' and 'Copy Rotation' in each bone in my armature and fills in the target slot ...