All Questions
75 questions
2
votes
1
answer
39
views
How can I create bones in an armature that are connected via Python?
When I create an armature with 1 bone and then press E on one end, I can extrude to form another connected bone. But when I try do do the same via Python, the bones are not connected:
...
1
vote
1
answer
22
views
Unexpected result when printing bone axes
I toggled on Axes for bones to see the local (I believe, correct me if im wrong) axes for each one
I would now like to print the axes of each bone using a simple script, however this is not giving me ...
1
vote
1
answer
194
views
How to select only deformation bones?
Is there a way to select all bones from the vertex group of the mesh?
I have too many overlapping bones that are very tedious to work and some are non-deformer which I wanted to hide and only work ...
0
votes
1
answer
34
views
Moving an EditBone along a local axis in Python
I'm attempting to write a script that helps automate rig creation for a specific type of armature, and the current minor issue I'm having is that I would like to create a pole target with as minimal ...
3
votes
1
answer
280
views
How is a bone's roll defined?
Background
I have a number of bones defined as positions + rotation quaternions.
In blender I understand bones are defined as a head, a tail and a roll. With the head -> tail vector being the ...
1
vote
0
answers
75
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 ...
1
vote
1
answer
124
views
Copy right side bone's constraint parameter as driver and paste it on counterpart of left side bone
There are lots of bones and right side bones and left side bones have same constraint. I always copy right side bones constraint parameter as driver and paste them on same parameter of left side bones ...
0
votes
1
answer
92
views
Coding: parenting 1 bone to another bone
I'm trying to make an addon for blender, but I'm having some difficulty with it I'm trying to use a script to select 2 specific bones with a certain name pattern and then parent the first bone to the ...
0
votes
1
answer
112
views
Simple armature creation script results in a crash when attempting to set bone parenting
My full script is more complex than this, but the issue I'm having can be reproduced with these 9 lines of Python code that create an armature with a single bone:
...
1
vote
1
answer
99
views
The results of python scripts and python console are different?
I'm running a script to create a bone and rotate it by setting rotation_euler of the PoseBone. But I got wrong results from the scripts.
My scripts code:
...
1
vote
1
answer
975
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:
...
3
votes
2
answers
227
views
How can I search to see if there's more than one bone with a certain name?
I've already figured out the code for finding bones by their name. I just need to know if there's more than one bone that meets this criteria (for example the words: "hand", "ik", ...
0
votes
2
answers
201
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
189
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
339
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 ...