All Questions
229
questions
1
vote
0
answers
157
views
How to recalculate a skeleton's pose (all PoseBone matrices) via python without a full scene update?
I'm working on a script to do some retargeting of an animation library to a new figure, and I've encountered a performance issue I don't know how to optimize away easily. My script loops through an ...
1
vote
0
answers
90
views
how can I access absolute vertex positions from mesh with armature?
I downloaded an animated mesh in FBX form from mixamo. When I import it to blender, the object looks like this in the outliner:
I need to access vertex positions of my mesh at every frame of the ...
0
votes
0
answers
35
views
bone axis-orientation is unexpected changed when modify bone.tail by python
I want straighten editbone, but using python
bone.tail = bone.head + bone.parent.y_axis*bone.length
will unexpected change axis-orientation.
How should I fix it?
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 ...
1
vote
1
answer
249
views
Making a chain of bones without bpy.ops
While making mesh objects with Python, I felt encouraged by the community to avoid using bpy.ops, as it is less efficient.
I am now making armature objects.
I am making a kind of snake where the body ...
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
1
answer
570
views
Recalcualte automatic weights for single bone using python
In a blender add-on, I import a mesh and join it with an armature using automatic weight.
I use bpy.ops.object.parent_set(type='ARMATURE_AUTO', keep_transform=True) ...
2
votes
0
answers
59
views
Trying to get the right orientation matrix
So i'm using a importer that uses a matrix and changes the transform and when i try and import with my keyframe data the arms and legs are like backwards? Crossed not sure how to explain it. So i'm ...
2
votes
1
answer
1k
views
How would I go about assigning a keyframe to my selected bone? (in python)
How would I retrieve the "selected_bone" in pose mode and add a keyframe to my current timeline position using python?
I'm struggling to find the correct naming for "selected bone"
1
vote
1
answer
771
views
How to read a specific pose from a pose library via Python API?
I'm writing a python script that needs to read the pose library associated with a particular armature object. I've figured how to query the pose names (via ...
0
votes
1
answer
841
views
Is there a way to return armature to rest position programatically without bpy.ops?
I need to reset my armature to the rest position with a python code. I could do it normally with but bpy.ops.pose.transforms_clear(), but sometimes it gives me errors
However I cant use bpy.ops since ...
2
votes
0
answers
275
views
Using Python, how do I list all the armatures in the scene and make the selected armature active?
I'll start by saying I'm fairly new to coding.
I'm trying to code an add-on that has a drop-down list that'll list all the armatures in a scene and then make it so you can select an armature from that ...
1
vote
2
answers
511
views
Selecting bones with the same name
I'm writing a little picker for Blender. The principle of operation is simple. I select some armatures, go into pose mode. If I select bones, then bones with the same name in other armatures become ...
0
votes
1
answer
336
views
Transforming armature bone by matrix of another bone in pose mode
I am attempting to move an armature bone in edit mode by the inverted matrix of another bone in pose mode. My reasoning for doing this is because I have joined two armatures and have lined the bones ...
1
vote
1
answer
949
views
Python copy animation from armature to another armature different rest pose
I have two armatures with different rest pose I wonder if there is a proper way to copy the animation from on the other as shown in the image.
Here is an example of the blend file https://ufile.io/...