Post #1187: ![](https://blenderartists.org/user_avatar/blenderartists.org/rhyging5/48/725092

📋 Metadata

🏷️ Tags

macro python-scripting intermediate solved

  • Macro Editor
  • Python Scripting

💬 Content

rhyging5:

basically a command like that, which is the influence slide bar of a bone constraint:

bpy.context.object.pose.bones[“DEF foot”].constraints[“Copy Rotation”].influence = 1

We have to use python script in this case:

bpy.context.object.pose.bones["DEF foot"].constraints["Copy Rotation"].influence = 1; bpy.context.object.pose.bones["DEF foot"].constraints["Copy Rotation"].keyframe_insert("influence")

🔗 View on Blender Artists