0
$\begingroup$

I want to scale the bone that is attached to the segment, but somehow I can't keep the position of the bone fixed, like in the following figures

Before scaling:

enter image description here

After scaling:

enter image description here

You see the position of the bone (pink object) is changed.

Here's the code:

from mathutils import Vector
arm = bpy.data.objects['color']

for bone in arm.pose.bones:
    bone.scale = Vector((2,2,2))

How can I keep the position fixed?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.