I'm trying to mute/unmute an IK constraint via Python, but unfortunately the change is not applied.

def update_function(group, context):
    pose = bpy.data.objects["Armature"].pose
    pose.bones["Gripper Core Bone"].constraints["IK"].mute = not group.enable_ik

Any ideas what's happening? The "eye" icon in the properties menu does update.

I'm using the Blender 2.80 beta.


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.