Skip to main content

All Questions

1 vote
0 answers
113 views

How to change pose of armature of a gltf file when the mesh is deformed?

I load a gltf file by pygltf and deform the vertices of gltf mesh by using a nonrigid method. when I export the gltf file, the mesh is deformed but the armature position is not changed. I am looking ...
user166917's user avatar
0 votes
0 answers
105 views

What's the differences between posebone's vector and bone's vector?

I want to get a certain bone's head/tail coords in world space in pose mode. I've seen some answers about Bones.vector and PoseBone.vector. When I set different frame of the armature, the PoseBone....
Nutcracker's user avatar
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 ...
AlexM's user avatar
  • 356
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 ...
lisyarus's user avatar
  • 115
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 ...
Manveru's user avatar
  • 223
0 votes
0 answers
269 views

How to get to original T-Pose coordinates after bpy.ops.pose.armature_apply?

very related to this question: PoseBone local rotation values to global with axis changed For the addon we're building we do the following steps: Create Mesh and armature from third party system ...
AlFranco's user avatar
1 vote
1 answer
333 views

Python, How to Convert Rotations of T-pose Pose Bones in Armature 1 to Pose Bones in Armature 2? Finding Rotational difference

The goal is to get the rotational difference of the bones between Armature 1 and Armature 2 in its T-pose(not exactly), then apply the difference to a pose of Armature 2. The purpose is so the model ...
Alphi Henry's user avatar
0 votes
1 answer
903 views

How to set quaternion rotations for bones in Blender Python

I'm working on an import script and I am getting stuck on doing armatures properly. So far I have been creating edit bones and I have it mostly looking correct, but while the directions that the ...
ShellyHerself's user avatar
2 votes
1 answer
1k views

Random pose generator addon ? How can it be done

Does anyone have an idea how I might be able to generate a lot of random poses of a human armature in blender,such as the head or the finger movements ? I would like to create and save several ...
Marietto's user avatar
  • 1,377
1 vote
1 answer
576 views

Access to the poses in poselib

I have an object with assigned armature .To this armature is assigned poselib, with several poses.Now my intention is to access all of the bones position in my python script from the poselib list I ...
Burhanuddin Abbas's user avatar
3 votes
1 answer
8k views

Get bone rotation in pose mode using Python

I want to get angles of joints in armature in pose mode, see the picture below. I tried to get local rotation of bones, but I can't find a way to do this. I tried: ...
Alexey Markov's user avatar
4 votes
5 answers
5k views

Reset Rotation , Translation and Scale of bones through Script

Like we do it by using shortcuts ALT + R to reset all rotations, ALT + G to reset all translations, ALT + S to reset all scales. Is there a proper way to clear the pose through script. Below is my ...
Shubham Sharma's user avatar