Skip to main content

All Questions

Tagged with
0 votes
1 answer
180 views

How do I change the name of a custom property that already has been assigned to Armature object?

How do I change the name of a custom property that already has been assigned to Armature object? As an example, I know that I can assign a new property in the selected armature in edit or pose mode by ...
Chingiz Jumagulov's user avatar
0 votes
1 answer
323 views

How do I assing a copy_transform constraint to bones stored in different lists?

So, I am writing a set of scripts to help me out with manual rigging in Blender. But I came across a problem when trying to assign constraints to 2 different groups of bones that I store in separate ...
Chingiz Jumagulov's user avatar
0 votes
0 answers
199 views

Is there a way to copy constraints from one armature to another?

I have two armatures, all the names and the number of bones are the same, but constraints are configured for one armature, is there a way, perhaps some script to copy the constraints to second ...
Алексей Беседин's user avatar
0 votes
1 answer
121 views

Trying to Create Driver for Armature Layer

import bpy arm = bpy.data.armatures[bpy.context.active_object.name] # type: ignore drv = arm.driver_add('layers', 0)[0].driver The error I receive here is: ...
Ryth Azhur's user avatar
0 votes
1 answer
204 views

How to check if a bone layer is empty with python

When I run my script, I want to activate only the bone layer that contains bones and mute the empty layers without bones. Is there an api that can tell if a layer is empty or not?
J. SungHoon's user avatar
  • 2,246
0 votes
2 answers
826 views

Select all children bones in Pose mode using Python

I needed a script that selects all children of multiple bones in pose mode. I must admit that my solution was very clumsy but helped in a particular situation =D So now I wonder how to do it the right,...
3DBear's user avatar
  • 835
0 votes
0 answers
335 views

programatically hide a bone in pose mode and in edit mode

I would like to create a function that hides the selected bones in pose mode and in Edit mode. The easy way to go is certainly: set the armature to EDIT mode set the hide flag for the selected ...
Gaia Clary's user avatar
  • 3,822
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: ...
cak3_lover's user avatar
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 ...
Lotrzyk's user avatar
  • 11
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
0 votes
0 answers
715 views

No rig main properties options when using the rigify addon

As the title suggests, I am unable to see any of the rig main properties options that should be present in the side panel. As previous questions on this matter have suggested, I have checked the rig ...
Person X's user avatar
2 votes
2 answers
1k views

apply a pose from the pose library via the api for Blender 3.0

I have a script that imports a rigged .glb file and I'd like to apply one of the poses from my pose library to the armature. If I do this manually, the API is: ...
Pergamond's user avatar
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: ...
Prasanjeet Mohanty's user avatar
2 votes
1 answer
391 views

Why does animation baking in Python not match Blender?

I'm writing an export script for Blender actions (in the context of video game animation). As part of that process, my script bakes actions that use inverse kinematics, as follows: ...
Grimelios's user avatar
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 (...
Grimelios's user avatar

15 30 50 per page
1 2 3
4
5
16